10% no-captcha-in-comments

Code Review | No Captcha in Comments

WordPress plugin No Captcha in Comments scored10%from 54 tests.

About plugin

  • Plugin page: no-captcha-in-com...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 21, 2015
  • Latest release: Mar 31, 2015
  • Number of updates: 33
  • Update frequency: every 0.4 days
  • Top authors: vinoth06 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,270 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/no-captcha-in-comments/no-captcha-in-comment.php+29
    Undefined variable: ncc_emailto

Server metrics [RAM: ▼1.97MB] [CPU: ▼53.77ms] Passed 4 tests

Server-side resources used by No Captcha in Comments
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.448.74 ▼31.02
Dashboard /wp-admin2.05 ▼1.305.37 ▼56.82
Posts /wp-admin/edit.php2.05 ▼1.317.23 ▼38.58
Add New Post /wp-admin/post-new.php2.05 ▼3.846.76 ▼88.67
Media Library /wp-admin/upload.php2.05 ▼1.186.14 ▼30.17

Server storage [IO: ▲0.13MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by No Captcha in Comments
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.28 ▼0.071.66 ▲0.0243.60 ▲3.34
Dashboard /wp-admin2,211 ▲315.62 ▲0.0180.16 ▼11.0440.52 ▼10.55
Posts /wp-admin/edit.php2,116 ▲162.03 ▼0.0541.30 ▲4.1136.88 ▲3.04
Add New Post /wp-admin/post-new.php1,548 ▲1818.41 ▼4.62614.39 ▼68.5264.29 ▲5.74
Media Library /wp-admin/upload.php1,416 ▲164.21 ▲0.00105.33 ▼6.7645.05 ▼0.36

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/no-captcha-in-comments/no-captcha-in-comment.php+29
    Undefined variable: ncc_emailto
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-captcha-in-comments/ncc-notification.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-captcha-in-comments/ncc-settings-menu.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-captcha-in-comments/ncc-notification.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Comment Form without CAPTCHA), #2 (Spam detected and blocked), #3 (Notification to user)
You can look at the official readme.txt

no-captcha-in-comments/no-captcha-in-comment.php 92% from 13 tests

The main PHP file in "No Captcha in Comments" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("no-captcha-in-comments.php" instead of "no-captcha-in-comment.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin277 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP44724234
JavaScript113443

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png14.32KB6.95KB▼ 51.50%
screenshot-3.png72.41KB29.79KB▼ 58.86%
screenshot-1.png32.72KB16.25KB▼ 50.33%