89% woo-honey-pot-anti-spam

Code Review | WooCommerce Honey Pot Anti Spam

WordPress plugin WooCommerce Honey Pot Anti Spam scored89%from 54 tests.

About plugin

  • Plugin page: woo-honey-pot-ant...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Jul 13, 2018
  • Latest release: Apr 14, 2022
  • Number of updates: 14
  • Update frequency: every 98.0 days
  • Top authors: kudosta (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /2,282 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.01MB] [CPU: ▼5.62ms] Passed 4 tests

An overview of server-side resources used by WooCommerce Honey Pot Anti Spam
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.67 ▼2.09
Dashboard /wp-admin3.31 ▲0.0145.05 ▼8.07
Posts /wp-admin/edit.php3.36 ▲0.0149.32 ▼0.33
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.20 ▼11.99
Media Library /wp-admin/upload.php3.24 ▲0.0137.74 ▲3.84

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Honey Pot Anti Spam
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.44 ▲0.011.93 ▼0.0242.57 ▲0.30
Dashboard /wp-admin2,206 ▲185.86 ▲0.7698.81 ▼8.7341.66 ▼4.50
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0339.67 ▲2.3636.70 ▼4.01
Add New Post /wp-admin/post-new.php1,533 ▼023.06 ▲0.10648.82 ▲47.2053.43 ▼4.89
Media Library /wp-admin/upload.php1,391 ▲124.20 ▲0.0096.25 ▼7.7643.01 ▲1.39

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: honey pot, woocommerce-login, robot, woocommerce-registration, non-human...

woo-honey-pot-anti-spam/woocommerce-honey-pot-anti-spam.php 85% from 13 tests

"WooCommerce Honey Pot Anti Spam" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-honey-pot-anti-spam.php" instead of "woocommerce-honey-pot-anti-spam.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin90 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2466290

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin