Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/honnypotter/honnypotter.php+34
Constant WP_DEBUG already defined
Server metrics [RAM: ▼1.94MB] [CPU: ▼61.98ms] Passed 4 tests
Server-side resources used by HonnyPotter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.39 ▼38.37 |
Dashboard /wp-admin | 2.08 ▼1.27 | 5.66 ▼61.05 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 6.05 ▼44.27 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.61 ▼104.24 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 6.39 ▼33.34 |
HonnyPotter /wp-admin/options-general.php?page=honnypotter | 2.08 | 6.83 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
honnypotter |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by HonnyPotter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.07 ▼0.46 | 1.74 ▲0.19 | 40.07 ▼1.94 |
Dashboard /wp-admin | 2,202 ▲31 | 5.63 ▼0.03 | 92.36 ▼14.14 | 38.22 ▼2.16 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.01 | 40.39 ▲1.26 | 36.33 ▼1.05 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.61 ▲0.63 | 677.76 ▼31.30 | 53.77 ▼17.58 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.10 ▼0.00 | 97.73 ▼18.62 | 45.56 ▼2.31 |
HonnyPotter /wp-admin/options-general.php?page=honnypotter | 823 | 1.99 | 26.52 | 29.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
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/honnypotter/honnypotter.php+34
Constant WP_DEBUG already defined
- This plugin did not uninstall successfully, leaving 7 options in the database
- honnypotter
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=honnypotter
- > Notice in wp-content/plugins/honnypotter/honnypotter.php+34
Constant WP_DEBUG already defined
SRP 0% from 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
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/honnypotter/honnypotter.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/honnypotter/honnypotter.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== honnypotter ===
)
honnypotter/honnypotter.php Passed 13 tests
"HonnyPotter" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
30 characters long description:
Log all failed login-attempts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin157 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 32 | 49 | 145 |
Markdown | 1 | 7 | 0 | 12 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 10 | 100.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin