Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.15MB] [CPU: ▼138.58ms] Passed 4 tests
An overview of server-side resources used by Prioritize Hooks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 45.66 ▲23.31 |
Dashboard /wp-admin | 3.25 ▲0.20 | 62.18 ▲3.45 |
Posts /wp-admin/edit.php | 3.30 ▲0.19 | 57.19 ▲3.56 |
Add New Post /wp-admin/post-new.php | 5.55 ▲0.12 | 110.65 ▼566.72 |
Media Library /wp-admin/upload.php | 3.13 ▲0.13 | 45.67 ▲5.41 |
Prioritize Hooks /wp-admin/tools.php?page=prioritize-hooks | 3.10 | 39.10 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Prioritize Hooks
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,689 ▲117 | 16.36 ▲0.88 | 12.65 ▼2.86 | 50.48 ▼4.82 |
Dashboard /wp-admin | 2,977 ▲40 | 6.01 ▼0.15 | 168.01 ▼2.01 | 127.24 ▲4.95 |
Posts /wp-admin/edit.php | 2,749 ▲10 | 2.73 ▲0.02 | 73.17 ▼1.88 | 97.98 ▼2.81 |
Add New Post /wp-admin/post-new.php | 1,624 ▲43 | 21.38 ▲3.60 | 337.30 ▼116.89 | 122.54 ▼1.07 |
Media Library /wp-admin/upload.php | 1,817 ▲10 | 5.10 ▲0.08 | 183.45 ▲3.88 | 128.40 ▲4.61 |
Prioritize Hooks /wp-admin/tools.php?page=prioritize-hooks | 1,832 | 2.53 | 79.10 | 111.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 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)
Good news, no errors were detected
SRP 50% 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 fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/prioritize-hooks/prioritizehooks.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/prioritize-hooks/prioritizehooks-admin.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: override, hooks, filters, actions
prioritize-hooks/prioritizehooks.php 92% from 13 tests
This is the main PHP file of "Prioritize Hooks" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("prioritize-hooks.php" instead of "prioritizehooks.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 detected247 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 54 | 19 | 230 |
CSS | 1 | 3 | 0 | 13 |
JavaScript | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 23 | 95.83% |
▷ Public methods | 18 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 25.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin