Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Error in wp-content/plugins/add-hierarchy-parent-to-post/library_default_puvox.php+8103
Uncaught Error: Class 'WP_Plugins_List_Table' not found in wp-content/plugins/add-hierarchy-parent-to-post/library_default_puvox.php:8103
Stack trace:
#0 wp-content/plugins/add-hierarchy-parent-to-post/library_default_puvox.php(8034): Puvox\default_plugin->is_not_bulk_activation()
#1 wp-includes/class-wp-hook.php(309): Puvox\default_plugin->Puvox\{closure}()
#2 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(474): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(716): do_action()
Server metrics [RAM: ▲2.31MB] [CPU: ▼280.07ms] Passed 4 tests
Server-side resources used by Add Hierarchy (parent) to post
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.90 ▲2.38 | 72.08 ▲23.19 |
Dashboard /wp-admin | 5.92 ▲2.51 | 55.56 ▲21.53 |
Posts /wp-admin/edit.php | 5.92 ▲2.28 | 51.37 ▲13.98 |
Add New Post /wp-admin/post-new.php | 9.04 ▲2.08 | 112.32 ▼1,158.65 |
Media Library /wp-admin/upload.php | 5.92 ▲2.62 | 34.08 ▲2.86 |
Add Hierarchy (parent) to post /wp-admin/options-general.php?page=add-hierarchy-parent-to-post | 5.92 | 40.78 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_add_hierarchy_parent_to_post__errors_log |
New WordPress options |
---|
add-hierarchy-parent-to-post |
Browser metrics Passed 4 tests
Add Hierarchy (parent) to post: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,803 ▲49 | 15.89 ▲0.15 | 6.11 ▲0.20 | 2.60 ▼0.03 |
Dashboard /wp-admin | 2,896 ▲35 | 6.14 ▲0.01 | 124.75 ▼14.26 | 157.72 ▼2.16 |
Posts /wp-admin/edit.php | 2,779 ▲91 | 3.24 ▲0.00 | 64.99 ▼0.66 | 140.25 ▼4.50 |
Add New Post /wp-admin/post-new.php | 1,651 ▼60 | 20.57 ▼1.89 | 428.13 ▲9.32 | 145.97 ▼22.67 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.53 ▲0.05 | 144.63 ▼4.31 | 188.03 ▼6.10 |
Add Hierarchy (parent) to post /wp-admin/options-general.php?page=add-hierarchy-parent-to-post | 1,508 | 3.29 | 61.07 | 192.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_add_hierarchy_parent_to_post__errors_log
- Zombie WordPress options detected upon uninstall: 1 option
- add-hierarchy-parent-to-post
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Contributors: Contributors not specified
add-hierarchy-parent-to-post/index.php 92% from 13 tests
Analyzing the main PHP file in "Add Hierarchy (parent) to post" version 3.12
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main 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 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected5,125 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 1,436 | 3,319 | 5,125 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,007)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 235.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,007.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 816 | |
▷ Static methods | 90 | 11.03% |
▷ Public methods | 812 | 99.51% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 0.49% |
Functions | 86 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 86 | 100.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
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% |