Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Widget_Tree_Nav::activate() should not be called statically
Server metrics [RAM: ▼1.71MB] [CPU: ▼50.27ms] Passed 4 tests
This is a short check of server-side resources used by WP-Parsi navigation trees
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 10.00 ▼34.52 |
Dashboard /wp-admin | 2.29 ▼1.01 | 11.77 ▼41.55 |
Posts /wp-admin/edit.php | 2.29 ▼1.06 | 10.44 ▼38.56 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.59 | 10.30 ▼86.44 |
Media Library /wp-admin/upload.php | 2.29 ▼0.94 | 9.83 ▼31.33 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_tree_nav |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WP-Parsi navigation trees
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲86 | 13.50 ▼1.22 | 9.94 ▲8.07 | 43.14 ▼2.42 |
Dashboard /wp-admin | 2,195 ▲18 | 5.50 ▼0.10 | 90.38 ▼7.44 | 38.62 ▼5.62 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.04 | 37.56 ▲0.27 | 33.05 ▼3.48 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.25 ▼0.18 | 675.30 ▲10.23 | 59.86 ▼3.02 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▼0.02 | 102.00 ▼2.21 | 42.28 ▼3.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Widget_Tree_Nav::register() should not be called statically
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-parsi-navigation-trees/wpp-tree.php:26
- > PHP Fatal error
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 90% from 29 tests
readme.txt 88% 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
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Create Wordpress menu), #2 (Set menu in widget option), #3 (Done)
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-parsi-navigation-trees/wpp-tree.php 92% from 13 tests
The main PHP script in "WP-Parsi navigation trees" version 2.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-parsi-navigation-trees.php" instead of "wpp-tree.php")
Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin137 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 25 | 15 | 60 |
CSS | 2 | 0 | 0 | 58 |
JavaScript | 1 | 9 | 0 | 19 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 6.20KB | 3.46KB | ▼ 44.27% |
screenshot-3.png | 5.63KB | 1.51KB | ▼ 73.11% |
screenshot-1.png | 27.16KB | 12.99KB | ▼ 52.15% |