90% no-captcha-spam-block

Code Review | No-captcha Spam Block

WordPress plugin No-captcha Spam Block scored90%from 54 tests.

About plugin

  • Plugin page: no-captcha-spam-b...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.6
  • WordPress version: 6.3.1
  • First release: Sep 5, 2013
  • Latest release: Sep 5, 2013
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: tagawa (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /3,630 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.14ms] Passed 4 tests

A check of server-side resources used by No-captcha Spam Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.44 ▲2.61
Dashboard /wp-admin3.31 ▲0.0155.83 ▲0.64
Posts /wp-admin/edit.php3.36 ▲0.0150.45 ▲0.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.90 ▼9.73
Media Library /wp-admin/upload.php3.23 ▲0.0134.39 ▼3.88

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
ncsb_threshold
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by No-captcha Spam Block
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.00 ▼0.382.15 ▲0.2247.31 ▲3.73
Dashboard /wp-admin2,192 ▲185.65 ▲0.0093.06 ▼5.6943.81 ▼3.34
Posts /wp-admin/edit.php2,100 ▼02.06 ▲0.0136.70 ▼4.8036.35 ▲3.43
Add New Post /wp-admin/post-new.php1,544 ▲1823.25 ▲5.84656.89 ▼11.8561.09 ▲4.70
Media Library /wp-admin/upload.php1,403 ▲34.20 ▼0.03109.27 ▲3.7750.50 ▲0.82

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
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • ncsb_threshold
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === no-captcha-spam-block === )
Please take inspiration from this readme.txt

no-captcha-spam-block/no-captcha-spam-block.php Passed 13 tests

"No-captcha Spam Block" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
55 characters long description:
Analyzes comments and tries to block any that are spam.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected150 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14417150

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin