Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼169.25ms] Passed 4 tests
This is a short check of server-side resources used by HostDispatch
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.12 | 36.21 ▲15.48 |
Dashboard /wp-admin | 3.84 ▲0.78 | 55.89 ▲9.13 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 42.12 ▼0.10 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.00 | 94.30 ▼685.54 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 30.70 ▼0.48 |
Server storage [IO: ▲0.00MB] [DB: ▲0.16MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for HostDispatch
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲189 | 15.93 ▲0.35 | 10.27 ▲0.99 | 47.92 ▲1.24 |
Dashboard /wp-admin | 3,083 ▲150 | 5.93 ▼0.29 | 133.04 ▼43.29 | 105.89 ▼2.64 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.72 ▼0.00 | 61.62 ▲0.60 | 90.74 ▼0.02 |
Add New Post /wp-admin/post-new.php | 1,615 ▼257 | 21.87 ▲2.76 | 269.95 ▼94.55 | 102.62 ▼14.07 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.06 ▼0.00 | 141.76 ▼8.19 | 121.64 ▲5.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.16MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hostdispatch/hostdispatch.php:75
- > PHP Fatal error
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
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: rss feed, hostdispatch, dashboard widget
hostdispatch/hostdispatch.php 92% from 13 tests
The principal PHP file in "HostDispatch" v. 1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Version: The version number should only use digits and periods (ex. "1.0.3" instead of "1")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected49 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 23 | 9 | 49 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
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 | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected