99% honeypot-woocommerce-wp-antispam

Code Review | Honeypot WooCommerce - WordPress AntiSpam

WordPress plugin Honeypot WooCommerce - WordPress AntiSpam scored 99% from 54 tests.

About plugin

  • Plugin page: honeypot-woocomme...
  • Plugin version: 1.3.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Mar 24, 2019
  • Latest release: Aug 25, 2020
  • Number of updates: 17
  • Update frequency: every 30.6 days
  • Top authors: camilo517 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active / 2,093 total downloads

Benchmarks

Plugin footprint Passed 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: ▼121.94ms] Passed 4 tests

Analyzing server-side resources used by Honeypot WooCommerce - WordPress AntiSpam
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1337.33 ▲8.66
Dashboard /wp-admin3.07 ▲0.0260.70 ▲17.99
Posts /wp-admin/edit.php3.12 ▲0.0164.81 ▲17.00
Add New Post /wp-admin/post-new.php5.43 ▼0.00118.78 ▼519.61
Media Library /wp-admin/upload.php3.01 ▲0.0137.36 ▲6.19

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Honeypot WooCommerce - WordPress AntiSpam
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,696 ▲8316.00 ▲0.6810.40 ▲1.6549.66 ▼15.63
Dashboard /wp-admin2,986 ▲555.91 ▼0.18206.70 ▲47.57138.26 ▲21.78
Posts /wp-admin/edit.php2,739 ▲32.70 ▲0.0099.56 ▲37.47117.44 ▲30.47
Add New Post /wp-admin/post-new.php1,683 ▼018.28 ▼0.48409.84 ▲44.00130.45 ▲17.01
Media Library /wp-admin/upload.php1,807 ▼05.02 ▲0.02208.68 ▲49.38145.84 ▲24.63

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

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

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: antispam wordpress, security woocommerce, antispam woocommerce, seguridad, honeypot wordpress...

honeypot-woocommerce-wp-antispam/honeypot-woocommerce-wordpress-antispam.php 85% from 13 tests

The main file in "Honeypot WooCommerce - WordPress AntiSpam" v. 1.3.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("honeypot-woocommerce-wp-antispam.php" instead of "honeypot-woocommerce-wordpress-antispam.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected167 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14645127
PO File161240

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin