90% honeypot-antispam

Code Review | Honeypot Anti-Spam

WordPress plugin Honeypot Anti-Spam scored90%from 54 tests.

About plugin

  • Plugin page: honeypot-antispam
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.0
  • WordPress version: 6.3.1
  • First release: Apr 29, 2020
  • Latest release: Jan 2, 2023
  • Number of updates: 32
  • Update frequency: every 30.6 days
  • Top authors: RaiolaNetworks (93.75%)soymgomez (9.38%)

Code review

54 tests

User reviews

9 reviews

Install metrics

10,000+ active /43,011 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.74ms] Passed 4 tests

This is a short check of server-side resources used by Honeypot Anti-Spam
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.00 ▼0.07
Dashboard /wp-admin3.36 ▲0.0646.54 ▼3.96
Posts /wp-admin/edit.php3.48 ▲0.1250.95 ▲3.00
Add New Post /wp-admin/post-new.php5.94 ▲0.0684.39 ▼18.95
Media Library /wp-admin/upload.php3.29 ▲0.0636.77 ▲0.01
Honeypot Antispam /wp-admin/options-general.php?page=honeypot-antispam3.2531.85

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
antispam_settings
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Honeypot Anti-Spam
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.371.52 ▲0.0141.42 ▲1.14
Dashboard /wp-admin2,199 ▲185.63 ▼0.0279.28 ▼20.5437.03 ▼7.11
Posts /wp-admin/edit.php2,104 ▲41.99 ▲0.0535.78 ▼1.4333.68 ▲0.38
Add New Post /wp-admin/post-new.php1,529 ▲323.13 ▼0.00691.63 ▲4.0270.31 ▲17.88
Media Library /wp-admin/upload.php1,404 ▲44.21 ▲0.0692.36 ▼17.7840.52 ▼7.49
Honeypot Antispam /wp-admin/options-general.php?page=honeypot-antispam8121.9923.1126.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • antispam_settings
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (14 tag instead of maximum 10)
You can look at the official readme.txt

honeypot-antispam/honeypot-antispam.php Passed 13 tests

"Honeypot Anti-Spam" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
32 characters long description:
No spam in comments. No captcha.

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 detected393 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP59619301
JavaScript111952
PO File1121440

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin