Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼7.03ms] Passed 4 tests
An overview of server-side resources used by Honeypot for WP Comment
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.24 | 37.89 ▲0.03 |
Dashboard /wp-admin | 3.64 ▲0.33 | 44.36 ▼3.18 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 44.98 ▲1.20 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 81.50 ▼23.95 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 34.59 ▼1.00 |
Settings /wp-admin/admin.php?page=honeypot-wp-comment-settings | 3.47 | 31.99 |
Logs /wp-admin/admin.php?page=honeypot-wp-comment-logs | 3.47 | 33.83 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 20 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_honeypot_wp_comments_logs |
New WordPress options |
---|
honeypot_wp_comment_db_version |
can_compress_scripts |
widget_recent-posts |
honeypot_advanced |
honeypot_basics |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Honeypot for WP Comment
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲51 | 14.14 ▼0.24 | 1.97 ▲0.03 | 37.25 ▼3.03 |
Dashboard /wp-admin | 2,218 ▲41 | 5.53 ▼0.16 | 84.76 ▼10.52 | 39.48 ▼0.77 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.02 ▼0.02 | 32.99 ▼1.28 | 33.85 ▼3.48 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 22.86 ▼0.82 | 593.55 ▼85.81 | 55.07 ▲5.91 |
Media Library /wp-admin/upload.php | 1,417 ▲14 | 4.15 ▼0.03 | 97.04 ▼2.58 | 42.96 ▼2.82 |
Settings /wp-admin/admin.php?page=honeypot-wp-comment-settings | 1,021 | 2.03 | 33.18 | 28.23 |
Logs /wp-admin/admin.php?page=honeypot-wp-comment-logs | 921 | 2.00 | 25.48 | 34.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: honeypot, email domain restriction, comments, spam, anti spam...
honeypot-for-wp-comment/honeypot-wp-comment.php 92% from 13 tests
The main PHP script in "Honeypot for WP Comment" version 2.2.3 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("honeypot-for-wp-comment.php" instead of "honeypot-wp-comment.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 detected1,591 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 292 | 776 | 1,591 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 10.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 76 | |
▷ Static methods | 3 | 3.95% |
▷ Public methods | 65 | 85.53% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 14.47% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There were not PNG files found in your plugin