Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.66ms] Passed 4 tests
Analyzing server-side resources used by TukuToi Hierarchical Posts Tree View
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 46.95 ▲1.66 |
Dashboard /wp-admin | 3.38 ▲0.08 | 56.12 ▲7.20 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 54.57 ▲3.56 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 92.44 ▼15.13 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.87 ▼0.72 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
TukuToi Hierarchical Posts Tree View: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲50 | 14.35 ▲0.06 | 1.66 ▼0.60 | 43.15 ▼5.27 |
Dashboard /wp-admin | 2,242 ▲65 | 5.67 ▼0.02 | 91.52 ▲3.86 | 42.61 ▲0.82 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.06 | 35.68 ▼6.08 | 35.18 ▼4.43 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 17.95 ▼5.38 | 635.05 ▼49.36 | 67.86 ▲17.68 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.13 ▼0.06 | 96.13 ▼10.75 | 43.40 ▼4.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: widget, pages, tree-view, hierarchical, classicpress
tkt-tree-view/tkt-tree-view.php Passed 13 tests
The main PHP script in "TukuToi Hierarchical Posts Tree View" version 1.0.3 is automatically included on every request by WordPress
81 characters long description:
WordPress Dashboard Widget displaying a Tree View of Hierarchical Pages or Posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin398 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 152 | 457 | 282 |
JavaScript | 1 | 43 | 15 | 64 |
CSS | 1 | 1 | 4 | 52 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 5.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 40.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin