10% formidable-honeypot

Code Review | Formidable Honeypot

WordPress plugin Formidable Honeypot scored10%from 54 tests.

About plugin

  • Plugin page: formidable-honeypot
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 25, 2014
  • Latest release: Jun 25, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: WP-Biz (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

800+ active /4,072 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/formidable-honeypot/formidable-honeypot.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; WPBizFrmHoneypot has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼55.31ms] Passed 4 tests

A check of server-side resources used by Formidable Honeypot
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.66 ▼40.13
Dashboard /wp-admin2.08 ▼1.226.89 ▼45.66
Posts /wp-admin/edit.php2.09 ▼1.275.59 ▼44.87
Add New Post /wp-admin/post-new.php2.08 ▼3.806.73 ▼90.59
Media Library /wp-admin/upload.php2.08 ▼1.146.48 ▼27.51

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Formidable Honeypot
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.16 ▼1.072.36 ▲0.2744.51 ▼1.49
Dashboard /wp-admin2,206 ▲215.89 ▲0.9995.50 ▼14.5538.07 ▼6.44
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0635.17 ▼3.1433.35 ▼0.86
Add New Post /wp-admin/post-new.php1,533 ▲1423.17 ▲0.07611.03 ▼83.3854.52 ▼5.09
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0298.39 ▼7.1544.54 ▼1.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/formidable-honeypot/formidable-honeypot.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; WPBizFrmHoneypot has a deprecated constructor
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/formidable-honeypot/formidable-honeypot.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === formidable-honeypot === )
The official readme.txt is a good inspiration

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

The entry point to "Formidable Honeypot" version 0.2 is a PHP file that has certain tags in its header comment area
55 characters long description:
Add invisible SPAM protection to your Formidable forms.

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
Good job! No executable or dangerous file extensions detected71 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1282171

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code1.23
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity6.20
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin