Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.23ms] Passed 4 tests
Analyzing server-side resources used by HTD 404
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.52 ▼10.28 |
Dashboard /wp-admin | 3.33 ▲0.03 | 52.71 ▼0.70 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 51.93 ▲2.11 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 90.73 ▼10.98 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.48 ▲1.05 |
404 Settings /wp-admin/options-general.php?page=HTD_404 | 3.20 | 32.33 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for HTD 404
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲15 | 13.56 ▼1.20 | 1.78 ▼0.34 | 43.90 ▼1.90 |
Dashboard /wp-admin | 2,207 ▼2 | 5.86 ▲0.01 | 108.52 ▼2.94 | 42.83 ▼1.20 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.01 | 37.24 ▼1.70 | 34.21 ▲1.08 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.66 ▼5.68 | 673.07 ▼1.65 | 64.66 ▲0.21 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.23 ▲0.00 | 95.66 ▼17.25 | 41.22 ▼38.46 |
404 Settings /wp-admin/options-general.php?page=HTD_404 | 816 | 2.05 | 23.53 | 28.88 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=HTD_404
- > Notice in wp-content/plugins/htd-404/HTD-404.php+59
Trying to access array offset on value of type bool
SRP 50% from 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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/htd-404/HTD-404.php:13
- > PHP Fatal error
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
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== htd-404 ===
)
htd-404/HTD-404.php 92% from 13 tests
Analyzing the main PHP file in "HTD 404" version 0.1.2
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("htd-404.php" instead of "HTD-404.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected514 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 78 | 68 | 346 |
PHP | 1 | 15 | 12 | 93 |
HTML | 1 | 0 | 0 | 75 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
23 PNG files occupy 0.07MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/robotik.png | 17.06KB | 6.81KB | ▼ 60.10% |
images/search_button_background_.png | 0.84KB | 0.88KB | 0.00% |
themes/green/images/robotik.png | 11.84KB | 7.73KB | ▼ 34.71% |
images/search_button_background.png | 0.85KB | 0.89KB | 0.00% |
images/message_stick.png | 0.28KB | 0.28KB | 0.00% |