Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼124.45ms] Passed 4 tests
Analyzing server-side resources used by Post Hierarchy
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.20 | 78.81 ▲53.55 |
Dashboard /wp-admin | 3.13 ▲0.07 | 71.97 ▲22.37 |
Posts /wp-admin/edit.php | 3.22 ▲0.11 | 62.01 ▲15.15 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 138.67 ▼533.39 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 34.17 ▼1.92 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Post Hierarchy: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.89 ▲0.35 | 11.17 ▼0.07 | 49.33 ▲1.65 |
Dashboard /wp-admin | 2,992 ▲61 | 5.97 ▲0.07 | 146.31 ▼19.38 | 110.90 ▼16.12 |
Posts /wp-admin/edit.php | 2,822 ▲83 | 2.72 ▲0.00 | 73.27 ▲2.13 | 89.87 ▲4.88 |
Add New Post /wp-admin/post-new.php | 1,690 ▲7 | 17.62 ▼0.77 | 442.98 ▲28.35 | 109.38 ▼6.31 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▼0.00 | 169.73 ▼33.24 | 111.60 ▼7.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests Passed 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)
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: post capabilities, posts, hierarchy
post-hierarchy/post-hierarchy.php Passed 13 tests
"Post Hierarchy" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
49 characters long description:
Set Post as a sub-post of other posts Like a Page
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected249 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 60 | 108 | 224 |
JSON | 1 | 0 | 0 | 15 |
Markdown | 1 | 5 | 0 | 10 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 3.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 13 | 56.52% |
▷ Protected methods | 4 | 17.39% |
▷ Private methods | 6 | 26.09% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There were not PNG files found in your plugin