Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- This plugin did not install gracefully
- > Error in wp-content/plugins/add-hierarchy-parent-to-post/library_wp.php+2677
Uncaught Error: Class 'WP_Plugins_List_Table' not found in wp-content/plugins/add-hierarchy-parent-to-post/library_wp.php:2677
Stack trace:
#0 wp-content/plugins/add-hierarchy-parent-to-post/library_wp.php(2611): Puvox\wp_plugin->is_not_bulk_activation()
#1 wp-includes/class-wp-hook.php(312): Puvox\wp_plugin->Puvox\{closure}()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(720): do_action()
Server metrics [RAM: ▲2.25MB] [CPU: ▲13.48ms] Passed 4 tests
Server-side resources used by Add Hierarchy (parent) to post
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.75 ▲2.28 | 59.19 ▲18.63 |
Dashboard /wp-admin | 5.59 ▲2.28 | 60.18 ▲10.61 |
Posts /wp-admin/edit.php | 5.64 ▲2.28 | 65.25 ▲18.90 |
Add New Post /wp-admin/post-new.php | 8.11 ▲2.22 | 104.43 ▲5.78 |
Media Library /wp-admin/upload.php | 5.45 ▲2.21 | 57.87 ▲19.89 |
Add Hierarchy (parent) to post /wp-admin/options-general.php?page=add-hierarchy-parent-to-post | 5.42 | 55.28 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_add_hierarchy_parent_to_post__errors_log |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
add-hierarchy-parent-to-post |
Browser metrics Passed 4 tests
An overview of browser requirements for Add Hierarchy (parent) to post
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲75 | 13.17 ▼1.13 | 5.29 ▲3.24 | 42.83 ▼4.46 |
Dashboard /wp-admin | 2,213 ▲25 | 5.90 ▲1.00 | 107.40 ▼5.06 | 38.86 ▼7.08 |
Posts /wp-admin/edit.php | 2,162 ▲73 | 2.02 ▲0.03 | 35.19 ▼7.27 | 33.41 ▼3.74 |
Add New Post /wp-admin/post-new.php | 1,562 ▲48 | 18.33 ▲0.59 | 635.27 ▲10.05 | 80.39 ▲22.18 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.21 ▼0.10 | 100.35 ▼4.20 | 43.93 ▼1.53 |
Add Hierarchy (parent) to post /wp-admin/options-general.php?page=add-hierarchy-parent-to-post | 1,132 | 2.29 | 32.60 | 73.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_add_hierarchy_parent_to_post__errors_log
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- add-hierarchy-parent-to-post
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Puvox\\library' not found in wp-content/plugins/add-hierarchy-parent-to-post/library_wp.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Contributors: The plugin contributors field is missing
add-hierarchy-parent-to-post/index.php 92% from 13 tests
"Add Hierarchy (parent) to post" version 3.13's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("add-hierarchy-parent-to-post.php" instead of "index.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,813 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 1,354 | 5,190 | 3,813 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,076)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 352.60 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 1,076.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 866 | |
▷ Static methods | 102 | 11.78% |
▷ Public methods | 859 | 99.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 0.81% |
Functions | 92 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 92 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/media/parent-choose.png | 6.55KB | 4.30KB | ▼ 34.29% |