Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▲6.09ms] Passed 4 tests
A check of server-side resources used by Hook Flowchart
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 53.67 ▲10.50 |
Dashboard /wp-admin | 3.50 ▲0.20 | 61.19 ▲7.42 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 64.02 ▲10.76 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 109.40 ▼4.33 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 49.01 ▲12.94 |
Server storage [IO: ▲3.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 329 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Hook Flowchart
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,063 ▲302 | 19.64 ▲5.30 | 16.71 ▲15.03 | 39.73 ▼3.75 |
Dashboard /wp-admin | 2,264 ▲90 | 7.38 ▲1.79 | 107.07 ▲15.42 | 39.34 ▼1.84 |
Posts /wp-admin/edit.php | 2,175 ▲75 | 4.63 ▲2.68 | 55.37 ▲17.77 | 36.70 ▲4.43 |
Add New Post /wp-admin/post-new.php | 1,455 ▼71 | 17.92 ▼5.79 | 589.67 ▼99.32 | 29.88 ▼24.87 |
Media Library /wp-admin/upload.php | 1,467 ▲67 | 6.65 ▲2.44 | 111.41 ▲10.39 | 40.19 ▼7.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- hook-flowchart
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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 fix the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/hook-flowchart/admin/includes/CMB2/bootstrap.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function new_cmb2_box() in wp-content/plugins/hook-flowchart/admin/views/admin.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hook-flowchart/admin/includes/CMB2/init.php:119
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hook-flowchart/includes/load_textdomain.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: A description for screenshot #2 is missing in hook-flowchart/assets to your readme.txt
hook-flowchart/hook-flowchart.php Passed 13 tests
The main PHP file in "Hook Flowchart" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
95 characters long description:
In every WordPress page there are in action many hooks but what are the relations between them?
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected37,780 lines of code in 164 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 12,620 | 16,217 | 28,955 |
CSS | 6 | 1,018 | 1,037 | 4,184 |
PHP | 21 | 913 | 2,242 | 2,837 |
Sass | 11 | 168 | 23 | 1,116 |
JavaScript | 6 | 165 | 121 | 688 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 38.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 211 | |
▷ Static methods | 24 | 11.37% |
▷ Public methods | 198 | 93.84% |
▷ Protected methods | 8 | 3.79% |
▷ Private methods | 5 | 2.37% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 8 | 72.73% |
▷ Class constants | 3 | 27.27% |
▷ Public constants | 3 | 100.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
19 PNG files occupy 0.22MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 69.28KB | 28.92KB | ▼ 58.26% |
admin/includes/CMB2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
admin/includes/CMB2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/includes/CMB2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/includes/CMB2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |