84% registration-honeypot

Code Review | Registration Honeypot

WordPress plugin Registration Honeypot scored 84% from 54 tests.

About plugin

  • Plugin page: registration-hone...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-3.9.1
  • WordPress version: 6.3.1
  • First release: May 12, 2014
  • Latest release: May 12, 2014
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: greenshady (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

600+ active / 8,306 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.97ms] Passed 4 tests

Server-side resources used by Registration Honeypot
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.44 ▼2.82
Dashboard /wp-admin3.32 ▲0.0252.98 ▲5.72
Posts /wp-admin/edit.php3.37 ▲0.0246.28 ▼1.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.33 ▼7.22
Media Library /wp-admin/upload.php3.25 ▲0.0235.25 ▲0.13

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Registration Honeypot
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲6814.44 ▲0.061.58 ▼0.1342.16 ▲0.39
Dashboard /wp-admin2,206 ▲175.91 ▲0.99111.93 ▼10.4439.40 ▼0.77
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0438.73 ▼4.1533.67 ▼2.45
Add New Post /wp-admin/post-new.php1,534 ▲1723.30 ▲5.72660.25 ▼5.3857.35 ▼19.64
Media Library /wp-admin/upload.php1,388 ▼34.21 ▼0.03121.94 ▲27.1046.84 ▲4.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

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
Good news, no errors were detected

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/registration-honeypot/registration-honeypot.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Error screen if spambot is caught.) image required
Please take inspiration from this readme.txt

registration-honeypot/registration-honeypot.php 92% from 13 tests

"Registration Honeypot" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 282 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected42 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1167838
Markdown1304

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png4.32KB2.76KB▼ 36.23%