Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/hot-corners/hot-corners.php+33
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.18ms] Passed 4 tests
This is a short check of server-side resources used by Hot Corners
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 31.59 ▼10.98 |
Dashboard /wp-admin | 3.37 ▲0.07 | 55.10 ▲5.09 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 47.86 ▲0.50 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 94.38 ▲2.90 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 33.41 ▼5.12 |
Server storage [IO: ▲0.09MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 8 new options
New WordPress options |
---|
wphc-special-message |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
wphc_tool_bar_array |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Hot Corners
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,725 ▼37 | 13.37 ▼0.78 | 8.62 ▲6.90 | 36.13 ▼11.95 |
Dashboard /wp-admin | 2,199 ▲22 | 5.65 ▼0.01 | 97.79 ▼5.73 | 42.49 ▼5.87 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▲0.02 | 39.62 ▼2.62 | 36.21 ▼0.33 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 23.19 ▼1.95 | 574.01 ▼66.16 | 42.63 ▼29.21 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.20 ▼0.01 | 98.71 ▲1.88 | 42.06 ▼0.66 |
Hot Corners /wp-admin/wphc-settings.php | 26 | 0.41 | 0.08 | 15.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- wphc_tool_bar_array
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Almost there! Just fix the following items
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hot-corners/_hc-functions.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/hot-corners/activation.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hot-corners/_hc-settings.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hot-corners/_hc-output.php:153
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/hot-corners/activation.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hot-corners/_hc-settings.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/wphc-settings.php
- > Network (severe)
wp-admin/wphc-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: toolbar
hot-corners/hot-corners.php Passed 13 tests
The main PHP file in "Hot Corners" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
53 characters long description:
Replace the WP Admin bar with invisible corner menus.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin2,130 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 323 | 115 | 1,174 |
PHP | 6 | 101 | 42 | 553 |
Sass | 3 | 57 | 8 | 385 |
JSON | 1 | 0 | 0 | 16 |
CSS | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
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 | 20 | |
▷ Named functions | 20 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/trash.png | 1.43KB | 0.87KB | ▼ 39.03% |
assets/images/beercon.png | 1.86KB | 2.20KB | 0.00% |