At the mercy of WordPress Plugins; how to fight back À mercê de WordPress Plugins; como a luta de volta
WordPress has unique plugin architecture. WordPress tem plugin arquitetura única. Plugins are simply php files which are include d (and executed) before any php pages which renders the content, whether it is your blog page or syndication feed or even administrative functions. Plugins são simplesmente php arquivos que estão incluem d (e executado) antes de qualquer php páginas que torna o conteúdo, se é o seu blog ou página distribui alimentos para animais ou até mesmo funções administrativas.
The plugins can do anything that is allowed by php code, including trashing your hard-disk to sending your bank account details to a cracker etc. Plugins do not operate under any restrictions. Os plugins podem fazer tudo o que é permitido pelo código PHP, incluindo trashing seu disco rígido para enviar a sua conta bancária para um cracker etc Plugins não operam sob quaisquer restrições. Nor can the product recover from errors generated by any plugin. Também não podemos recuperar o produto de erros gerados por qualquer plugin. I really miss here Java's strong security infrastructure. Eu realmente perca aqui Java forte segurança da infra-estrutura.
Still fine and dandy untill you discover to your horror how a poorly coded plugin can bring down your site in no time. E ainda funciona "dandy até você descobrir que o seu horror como um mal codificados plugin pode fazer baixar o seu site em nenhum momento.
Couple that with php's "silent treatment" of errors. Php com o jovem que é "silenciosa tratamento" de erros. In other words you and your viewers are greeted with a nice looking, white in color web page, whenever any (plugin) error occurs. Em outras palavras você e seus visitantes são recebidos com um olhar agradável, cor branca na página web, sempre que qualquer (plugin) erro ocorre. Plugin errors could be as simple as having blank spaces at the end of plugin files after ?> to more complex ones like invalid argument to methods. Plugin erros poderiam ser tão simples como ter espaços em branco no final do plugin arquivos depois?> Para mais complexos como argumento inválido para métodos.
Update: Please check Update: Por favor, verifique tips on making your plugins robust dicas sobre como tornar seus encaixes robustos .
Pages: 1 Páginas: 1 2
Filed under Arquivado em CMS Software CMS Software , Headline News Headline News , How To How To , Open Source Software Open Source Software , PHP , Pro Blogging Blogging Pro , Web , WordPress | |
| |
RSS 2.0 RSS 2,0 | |
Email this Article E-mail este artigo
You may also like to read Você pode também gosta de ler |




































May 11th, 2005 at 1:58 pm 11 de maio de 2005, às 1:58 pm
Nice Article.. Nice artigo ..
I like your wordpress articles. Eu gosto wordpress seus artigos. You seem to be quite knowledgeable on the inner and outer workings of this baby. Você parece ser bastante entendido sobre o interior e exterior funcionamento deste bebê. Keep up the good work. Mantenha-o bom trabalho.
I can see your Wordpress Feed updates in my klipfolio reader (www.klipfolio.com) Posso ver o seu Wordpress Feed atualizações no meu leitor KlipFolio (www.klipfolio.com)
As far as plugins, so far no major problems.. No que diz respeito aos plugins, até agora não há grandes problemas .. the only thing I worry about is if I put too many of them in my blog that there will be incompatibilities amongst them. a única coisa que me preocupe com isso é se eu colocar muitos deles no meu blog que vai haver incompatibilidades entre eles. In addition, I fear that when I upgrade to next wordpress version, if I have too many plugins it will screw me over… But so far everything is smooth. Além disso, receio que quando eu o upgrade para a próxima versão wordpress, se eu tiver muitos plugins ele irá me parafuso longo… Mas até agora tudo está bom.
Regards, Atenciosamente,
tom Tom
May 11th, 2005 at 2:00 pm 11 de maio de 2005, às 2:00 pm
Forgot to say, in case you want added publicity for your blog, consider adding yourself to the klip folio database. Esqueceu de dizer, no caso de você desejar acrescentou publicidade para o seu blog, acrescentando-se a considerar o klip fólio banco de dados. It is a good way to get added exposure: É uma boa maneira de obter exposição acrescentou:
http://www.serence.com/provider.php
May 11th, 2005 at 6:46 pm 11 de maio de 2005, às 6:46 pm
@Thomas I registered as a provider. @ Thomas I, registada como um provedor. It is just so much complicated to create a klip. É apenas muito complicado para a criação de um klip. And then they do not explain clearly upfront, what in the hell is a klip! E então eles não explica claramente iniciais, o que, no inferno é um klip!
It looks over-engineered at first glance. Parece-se um excesso de engenharia, à primeira vista. I might give it a try again later. Eu poderia dar-lhe um tente novamente mais tarde.
May 12th, 2005 at 7:41 am 12 de maio de 2005, às 7:41 am
Well said. Bem dito. No doubt someone experienced would be able to fix misbehaving plugins it does screws the non-geeks over. Não há dúvida que alguém experiente seria capaz de corrigir misbehaving plugins que faz os parafusos não-geeks mais.
How then would you propose a solution that offers security and fail-safety together with the existing simple ease of implementation? Como, então você iria propor uma solução que oferece segurança e deixar de segurança juntamente com a facilidade de implementação simples existentes? I’m really interested to find out. Eu estou realmente interessado em descobrir.
May 12th, 2005 at 12:57 pm 12 de maio de 2005, às 12:57
In Java World we could allow the plugins to be executed in a limited rights environment or sandbox. Em Java Mundo podíamos permitir que os plugins a serem executados em um ambiente ou sandbox direitos limitados. So the plugins from unknown source cannot do anything nasty. Portanto, os plugins de fontes desconhecidas não podem fazer nada desagradável.
Secondly even if a plugin fails the site should continue. Em segundo lugar, mesmo que um plugin falhar o site deve continuar. Again in Java world we achieve this by catching the execptions generated by the plugin, logging them, and move on to execute other plugins. Novamente em Java alcançar este mundo em que a captura de execptions gerados pelo plugin, registrando-los, e passar ao executar outros plugins. The page should still display, albeit with reduced functionality. A página ainda deve exibir, embora com funcionalidade reduzida.
This is in essence what we need for plugins. Isto é, em essência do que precisamos para plugins. In php world it is much harder to achieve. Em php mundo é que é muito difícil de atingir. So the fallback option is to have a public reveiew system of plugins and use only the ones with good reviews. Portanto, a opção fallback está a ter um público reveiew sistema de plugins e utilizar apenas a uns com boas opiniões.
Secondly we should always test the plugins in a test enironment before deployment. Em segundo lugar, devemos sempre testar os plugins em um teste antes enironment implantação.
Personally I prefer to look in the plugin code also to ensure something strange isn’t going on. Pessoalmente, prefiro olhar para o plugin do código também para garantir uma coisa estranha não está acontecendo.
May 13th, 2005 at 8:43 am 13 de maio de 2005, às 8:43 am
“In php world it is much harder to achieve.” "Em php mundo é que é muito difícil de atingir."
It actually is not hard to achieve, it just is of little interest in this application. Ele realmente não é difícil de alcançar, ela é apenas de pouco interesse por esta aplicação. I doubt that the Wordpress developers target audience are grumpy Java developers who can’t figure out the PHP error settings. Duvido que o público-alvo são desenvolvedores Wordpress grumpy desenvolvedores Java que não conseguem descobrir o erro PHP configurações. Either log them or set them to print please. Ou log-las ou imprimi-los a definir por favor.
May 14th, 2005 at 5:33 am 14 de maio de 2005, às 5:33 am
@Christopher I think you misunderstood the comments. @ Christopher I penso que você entendeu mal os comentários. It is about running plugins in a secure sandbox, which is much harder to do in php then in Java. Trata-se de correr plugins de forma segura sandbox, que é muito mais difícil de fazer em php depois, em Java. I wasn’t talking about error settings. Eu não estava falando sobre configurações de erro.
May 16th, 2005 at 10:49 pm 16 de maio de 2005, às 10:49 pm
I think the plugin system, while very powerful, is fundamentally flawed. Penso que o plugin sistema, embora muito poderoso, é fundamentalmente errado. I find that calling apply_filters on a field is rather irritating. Acho que a chamada apply_filters em um campo é bastante irritante. I would _much_ rather apply_filters to a post, because sometimes, you simply need to filter a field differently based on the surrounding data. Gostaria de _much_ sim apply_filters para um lugar, porque, às vezes, você só precisa de um campo diferente para filtrar baseado em dados do entorno. And this would make the plugins work better outside the loop. E isto tornaria os plugins trabalhar melhor fora do loop.
Btw: Which plugin we should stay away from? BTW: Qual o plugin deve permanecer longe de nós?
May 16th, 2005 at 11:34 pm 16 de maio de 2005, às 11:34 pm
@Denis de Bernardy @ Denis de Bernardy
I agree. Eu concordo.
My plugin problems was with a rss aggregator plugin. O meu problema era com um plugin rss agregador plugin. In all fairness I had some settings wrong. Em todos os equidade eu tinha alguns ajustes errado. However the way it bailed on me, bringing down the whole site made me realize the mine field we are sitting on No entanto a sua forma de bailed em mim, o que diminuirá o site inteiro me fez perceber o meu domínio que estamos a sessão
Plugins are like Business Rules. Plugins são como as Regras de Negócios. One flawed business rule cannot bring down a BR engine. Um negócio imperfeito Estado não pode fazer baixar um BR motor. Similarly one errant plugin shouldn’t be able to bring down the site. Do mesmo modo errant um plugin não deve ser capaz de fazer baixar o site.