77% alphaomega-captcha-anti-spam

Code Review | AlphaOmega Captcha & Anti-Spam Filter

WordPress plugin AlphaOmega Captcha & Anti-Spam Filter scored77%from 54 tests.

About plugin

  • Plugin page: alphaomega-captch...
  • Plugin version: 3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.6.1
  • WordPress version: 6.3.1
  • First release: Sep 7, 2012
  • Latest release: Mar 23, 2018
  • Number of updates: 254
  • Update frequency: every 8.0 days
  • Top authors: alphaomegaplugins (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

700+ active /34,714 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼7.23ms] Passed 4 tests

This is a short check of server-side resources used by AlphaOmega Captcha & Anti-Spam Filter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2137.61 ▼14.56
Dashboard /wp-admin3.50 ▲0.2045.90 ▼7.08
Posts /wp-admin/edit.php3.56 ▲0.2046.34 ▼2.79
Add New Post /wp-admin/post-new.php6.08 ▲0.2092.97 ▼4.47
Media Library /wp-admin/upload.php3.43 ▲0.2036.60 ▲3.81
AlphaOmega Captcha & Anti-Spam Filter Settings /wp-admin/plugins.php?page=alphaomega_captcha_and_antispam3.5332.22

Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 100 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
aostichia
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for AlphaOmega Captcha & Anti-Spam Filter
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.46 ▼0.121.72 ▼0.5346.15 ▼9.60
Dashboard /wp-admin2,207 ▲195.80 ▲0.9298.00 ▼10.6638.22 ▼3.15
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0641.20 ▲0.7135.52 ▼3.20
Add New Post /wp-admin/post-new.php1,540 ▲723.26 ▲0.12638.26 ▼40.0252.19 ▼3.79
Media Library /wp-admin/upload.php1,392 ▲14.20 ▼0.0294.35 ▼5.1844.22 ▲0.95
AlphaOmega Captcha & Anti-Spam Filter Settings /wp-admin/plugins.php?page=alphaomega_captcha_and_antispam1,5231.6924.7391.60

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 19× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/alphaomega-captcha-anti-spam/addenda/asphaliadixeena.php
    • > /wp-content/plugins/alphaomega-captcha-anti-spam/addenda/asphaliadixedio.php
    • > /wp-content/plugins/alphaomega-captcha-anti-spam/addenda/asphaliadixeendeca.php
    • > /wp-content/plugins/alphaomega-captcha-anti-spam/addenda/asphaliadixedecatesera.php
    • > /wp-content/plugins/alphaomega-captcha-anti-spam/addenda/asphaliadixedecaexi.php
    • > /wp-content/plugins/alphaomega-captcha-anti-spam/addenda/asphaliadixeefta.php
    • > /wp-content/plugins/alphaomega-captcha-anti-spam/addenda/asphaliadixetesera.php
    • > /wp-content/plugins/alphaomega-captcha-anti-spam/addenda/asphaliadixeenea.php
    • > /wp-content/plugins/alphaomega-captcha-anti-spam/addenda/asphaliadixedecaenea.php
    • > /wp-content/plugins/alphaomega-captcha-anti-spam/addenda/asphaliadixedeca.php
  • 55× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/alphaomega-captcha-anti-spam/addenda/stichiabase.php on line 4
    • > PHP Notice
      Undefined index: stichiotichotopos in wp-content/plugins/alphaomega-captcha-anti-spam/addenda/asis.php on line 100
    • > PHP Notice
      Undefined index: stragiseonoma in wp-content/plugins/alphaomega-captcha-anti-spam/addenda/asis.php on line 107
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/alphaomega-captcha-anti-spam/addenda/retop.php:3
    • > PHP Notice
      Undefined index: minimatichotopos in wp-content/plugins/alphaomega-captcha-anti-spam/addenda/asis.php on line 95
    • > PHP Notice
      Undefined index: dikosustragisekolona in wp-content/plugins/alphaomega-captcha-anti-spam/addenda/asis.php on line 132
    • > PHP Notice
      Undefined index: titichonadixis in wp-content/plugins/alphaomega-captcha-anti-spam/addenda/asis.php on line 61
    • > PHP Notice
      Undefined variable: stichiakubiapantisme in wp-content/plugins/alphaomega-captcha-anti-spam/addenda/stichiabase.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/alphaomega-captcha-anti-spam/alphaomega-captcha-and-anti-spam.php:31
    • > PHP Notice
      Undefined variable: doseinput in wp-content/plugins/alphaomega-captcha-anti-spam/addenda/stichiabase.php on line 6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (The above screenshot shows the **SPAM COUNTER** which can be viewed from the AlphaOmega Captcha & Anti-Spam Filter WordPress Settings panel. This counter is very useful in confirming the effectiveness of your choice of SPAM-related keywords/phrases present in your Spam Filter List, and provides an indication of the level of spamming activity directed against your WordPress pages. Modifications to your Spam Filter List can be made and saved at any time to further safeguard your site. You also have the option of filtering any or all of your **Comment Form** elements for spam, including **Name**, **E-mail**, **URL**, and **Comment** / **Message**.), #2 (The above screenshot shows the variety of captcha types that can be displayed on your WordPress **Comment Form** and **Admin Log In** area. For an explanation concerning the manner by which the different captcha types operate, please see the 'Description' tabsheet of the WordPress [AlphaOmega Captcha & Anti-Spam Filter](http://wordpress.org/extend/plugins/alphaomega-captcha-anti-spam/) site.), #3 (The above screenshot shows examples of the different captcha positions possible for display on your WordPress **Comment Form**. Top (T), Middle (M) or Bottom (B) positions can be selected.), #4 (The above screenshot shows an example of the captcha position on your WordPress **Admin Log In** area. Placing a captcha here can significantly block automated log in attempts.), #5 (The above screenshot shows the **Anti-Spam Filter** options of the AlphaOmega Captcha & Anti-Spam Filter WordPress Settings panel. You can create your own **Custom Anti-Spam Filter List** to block all spam Comments from being sent to you. Enter as many spam-related keywords or phrases as you like. This gives you complete control over which Comments are blocked. All Comment Form elements including **Name**, **E-mail**, **URL** and **Comment** / **Message** can be filtered for inappropriate content. The **SPAM COUNTER** shown above is incremented every time a web user attempts to send you spam, and can be viewed from the plugin's Settings panel of your WordPress Dashboard. The **SPAM COUNTER** is very useful in confirming the effectiveness of your choice of SPAM-related keywords/phrases present in your Spam Filter List, and provides an indication of the level of spamming activity directed against your WordPress pages. Modifications to the Spam Filter List can be made and saved at any time to further safeguard your site.), #6 (The above screenshot shows the **Anti-Spam Filter** options that allow you to configure a customized message shown to spammers when their spam-related Comment is blocked from being sent to you. A polite message is advisable.)
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

alphaomega-captcha-anti-spam/alphaomega-captcha-and-anti-spam.php 85% from 13 tests

The main PHP script in "AlphaOmega Captcha & Anti-Spam Filter" version 3.3 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("alphaomega-captcha-anti-spam.php" instead of "alphaomega-captcha-and-anti-spam.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 149 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected3,836 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
PHP54835283,836

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
30 PNG files occupy 0.14MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
addenda/defstichiapano.png6.80KB4.75KB▼ 30.19%
addenda/commlangstichiamesipa.png6.53KB4.76KB▼ 27.12%
addenda/stichommqenteorth.png6.92KB4.74KB▼ 31.49%
addenda/delimittchai.png6.43KB4.79KB▼ 25.61%
addenda/updatelogs/3.0/2.8/2.5/2.0/1.7/loukumi-bak2.png2.09KB1.33KB▼ 36.42%