Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/easytree/class/class.easytreewidget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; EasyTreeWidget has a deprecated constructor
Server metrics [RAM: ▼1.86MB] [CPU: ▼54.51ms] Passed 4 tests
This is a short check of server-side resources used by EasyTree
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.34 | 5.34 ▼35.69 |
Dashboard /wp-admin | 2.14 ▼1.16 | 6.77 ▼43.67 |
Posts /wp-admin/edit.php | 2.14 ▼1.21 | 6.20 ▼46.58 |
Add New Post /wp-admin/post-new.php | 2.14 ▼3.74 | 5.93 ▼92.08 |
Media Library /wp-admin/upload.php | 2.14 ▼1.09 | 5.32 ▼28.30 |
EasyTree /wp-admin/options-general.php?page=easytree | 2.14 | 5.75 |
Server storage [IO: ▲1.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 56 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_easytreewidget |
easytree_option_skin |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for EasyTree
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲115 | 13.43 ▼0.93 | 8.39 ▲6.70 | 42.72 ▼5.02 |
Dashboard /wp-admin | 2,202 ▲28 | 5.62 ▲0.01 | 94.93 ▲3.97 | 41.29 ▲0.82 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.02 ▼0.02 | 34.50 ▼8.07 | 33.28 ▼4.25 |
Add New Post /wp-admin/post-new.php | 1,529 ▼10 | 23.27 ▲5.05 | 628.75 ▼7.83 | 73.74 ▲10.99 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.18 ▲0.00 | 96.94 ▼5.61 | 47.69 ▼0.48 |
EasyTree /wp-admin/options-general.php?page=easytree | 1,023 | 2.01 | 25.31 | 28.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/easytree/class/class.easytreewidget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; EasyTreeWidget has a deprecated constructor
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- widget_easytreewidget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- easytree_option_skin
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=easytree
- > Deprecated in wp-content/plugins/easytree/class/class.easytreewidget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; EasyTreeWidget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=easytree
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in EasyTreeWidget is deprecated since version 4.3.0! Use __construct() instead.
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
The following issues need your attention
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Walker_Category' not found in wp-content/plugins/easytree/class/class.wpeasytreetagswalker.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/easytree/easytree.php:14
- > PHP Fatal error
Uncaught Error: Class 'Walker_Category' not found in wp-content/plugins/easytree/class/class.wpeasytreecategorywalker.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easytree/class/class.easytreewidget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% 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
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Options page), #2 (Adding widget), #3 (Widget), #4 (Configuring the `Menu` section in EasyTree)
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
easytree/easytree.php Passed 13 tests
The primary PHP file in "EasyTree" version 1.3 is used by WordPress to initiate all plugin functionality
104 characters long description:
Complete dropdown tree navigation that contain pages, categories with posts, tags, authors and own menu.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin3,036 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 205 | 492 | 1,665 |
JavaScript | 2 | 147 | 46 | 879 |
PHP | 7 | 86 | 36 | 418 |
PO File | 1 | 27 | 56 | 74 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
15 PNG files occupy 0.82MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 10.56KB | 4.61KB | ▼ 56.38% |
img/easytree_menu.png | 4.89KB | 2.51KB | ▼ 48.72% |
screenshot-1.png | 68.93KB | 26.15KB | ▼ 62.07% |
img/programming2.png | 0.47KB | 0.40KB | ▼ 15.63% |
img/easytree_dashboard_menu_target.png | 36.33KB | 19.07KB | ▼ 47.51% |