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
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.15ms] Passed 4 tests
Server-side resources used by WP Hooks Browser
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.55 ▲5.78 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.47 ▼5.70 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 46.36 ▼5.42 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 81.36 ▼20.84 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.99 ▲3.36 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
WP Hooks Browser: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲85 | 14.48 ▼0.30 | 1.57 ▼0.02 | 42.75 ▲4.07 |
Dashboard /wp-admin | 2,229 ▲40 | 4.89 ▼0.07 | 102.40 ▼23.03 | 38.88 ▼4.58 |
Posts /wp-admin/edit.php | 2,109 ▲17 | 2.04 ▼0.00 | 39.50 ▼4.74 | 35.04 ▼1.62 |
Add New Post /wp-admin/post-new.php | 1,531 ▼13 | 23.35 ▲5.12 | 657.92 ▲32.50 | 53.80 ▲4.02 |
Media Library /wp-admin/upload.php | 1,411 ▲26 | 4.24 ▼0.01 | 96.48 ▼3.07 | 41.94 ▼3.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-hooks-browser/lib/admin-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-hooks-browser/trunk/lib/admin-page.php:2
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Screenshot #4 (String search support) image not found
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
wp-hooks-browser/wp-hooks-browser.php Passed 13 tests
This is the main PHP file of "WP Hooks Browser" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
115 characters long description:
A very simple plugin to document all the used and or defined hooks inside any of the installed theme and or plugins
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 detected650 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 117 | 313 | 548 |
CSS | 1 | 13 | 0 | 78 |
JavaScript | 1 | 3 | 0 | 24 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 53.00 |
▷ Minimum class complexity | 53.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 2 | 100.00% |
Methods | 36 | |
▷ Static methods | 2 | 5.56% |
▷ Public methods | 26 | 72.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 27.78% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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