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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.22ms] Passed 4 tests
An overview of server-side resources used by WP Armour - Honeypot Anti Spam
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.30 ▼4.52 |
Dashboard /wp-admin | 3.33 ▼0.02 | 47.92 ▼15.47 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.77 ▲2.04 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 93.40 ▲7.14 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.67 ▼2.91 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 41 new files
Database: no new tables, 11 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
wpa_installed_date |
widget_theysaidso_widget |
db_upgraded |
wpa_error_message |
widget_recent-posts |
wpa_field_name |
wpa_disable_test_widget |
... |
Browser metrics Passed 4 tests
WP Armour - Honeypot Anti Spam: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,009 ▲262 | 13.51 ▼1.20 | 7.96 ▲6.35 | 37.89 ▼6.61 |
Dashboard /wp-admin | 2,273 ▲99 | 5.58 ▼0.07 | 94.00 ▲1.75 | 77.22 ▲31.56 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.97 ▲0.02 | 40.69 ▲0.64 | 36.27 ▲0.38 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.23 ▼0.24 | 604.35 ▼96.29 | 52.93 ▲2.59 |
Media Library /wp-admin/upload.php | 1,419 ▲22 | 4.16 ▼0.05 | 96.06 ▼1.05 | 42.67 ▼1.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 11 options
- wpa_installed_date
- wpa_field_name
- widget_recent-posts
- wpa_disable_test_widget
- wpa_error_message
- wpa_stats
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- 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 everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Screenshot #1 (Screenshot #11. Anti Spam for Fluent Forms) image not found
honeypot/wp-armour.php 92% from 13 tests
The main PHP script in "WP Armour - Honeypot Anti Spam" version 2.1.6 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("honeypot.php" instead of "wp-armour.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
No dangerous file extensions were detected754 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 109 | 67 | 691 |
JavaScript | 1 | 14 | 2 | 61 |
CSS | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 29 | 96.67% |
▷ Anonymous functions | 1 | 3.33% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
13 PNG files occupy 0.79MB with 0.54MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-12.png | 60.10KB | 17.83KB | ▼ 70.33% |
screenshot-1.png | 62.62KB | 20.81KB | ▼ 66.76% |
screenshot-5.png | 34.91KB | 10.85KB | ▼ 68.93% |
includes/img/dashboard_stats.png | 42.22KB | 14.48KB | ▼ 65.70% |
screenshot-10.png | 40.82KB | 11.57KB | ▼ 71.66% |