89% spam-protection-without-captcha

Code Review | Spam Protection Without Captcha

WordPress plugin Spam Protection Without Captcha scored89%from 54 tests.

About plugin

  • Plugin page: spam-protection-w...
  • Plugin version: 1.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5
  • WordPress version: 6.3.1
  • First release: Sep 11, 2019
  • Latest release: Aug 3, 2020
  • Number of updates: 12
  • Update frequency: every 27.3 days
  • Top authors: shamim51 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /1,440 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.14MB] [CPU: ▼11.31ms] Passed 4 tests

An overview of server-side resources used by Spam Protection Without Captcha
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0739.69 ▼0.59
Dashboard /wp-admin3.47 ▲0.1244.75 ▼41.91
Posts /wp-admin/edit.php3.58 ▲0.2345.80 ▼4.93
Add New Post /wp-admin/post-new.php6.07 ▲0.1887.29 ▲3.37
Media Library /wp-admin/upload.php3.39 ▲0.1635.06 ▲2.20
Spam Protection Without Captcha /wp-admin/options-general.php?page=spwc-admin-settings3.3630.36

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
spwc_admin_options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Spam Protection Without Captcha
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6413.67 ▼0.711.89 ▲0.2042.67 ▼1.47
Dashboard /wp-admin2,210 ▲225.88 ▲0.0294.58 ▼31.6738.69 ▼3.61
Posts /wp-admin/edit.php2,090 ▲12.01 ▲0.0139.26 ▲3.2834.39 ▲0.25
Add New Post /wp-admin/post-new.php1,545 ▲318.58 ▲0.53581.86 ▼21.2850.57 ▼2.63
Media Library /wp-admin/upload.php1,395 ▲44.19 ▼0.0197.47 ▲2.6042.49 ▼0.35
Spam Protection Without Captcha /wp-admin/options-general.php?page=spwc-admin-settings1,3842.2850.6724.57

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • spwc_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: nocaptcha, spam, captcha, bot, comments

spam-protection-without-captcha/plugin.php 85% from 13 tests

The entry point to "Spam Protection Without Captcha" version 1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("spam-protection-without-captcha.php" instead of "plugin.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)

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
No dangerous file extensions were detected761 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP411127732
JavaScript22029

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity37.67
▷ Minimum class complexity3.00
▷ Maximum class complexity68.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods43
▷ Static methods36.98%
▷ Public methods4093.02%
▷ Protected methods00.00%
▷ Private methods36.98%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin