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
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/wp-moo-tree/tree-shortcode.php+122
Declaration of Mootree_walker::start_el(&$output, $page, $depth, $args, $current_page = 0) should be compatible with Walker_Page::start_el(&$output, $data_object, $depth = 0, $args = Array, $current_object_id = 0)
Server metrics [RAM: ▼1.97MB] [CPU: ▼58.64ms] Passed 4 tests
A check of server-side resources used by Wordpress MooTools Tree Creator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.76 ▼35.04 |
Dashboard /wp-admin | 2.05 ▼1.30 | 6.05 ▼60.53 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.32 ▼45.48 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.90 ▼93.49 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.54 ▼29.78 |
Tree Categories /wp-admin/edit-tags.php?taxonomy=tree-categories&post_type=mootree | 2.05 | 6.77 |
All Branches /wp-admin/edit.php?post_type=mootree | 2.05 | 6.68 |
Add New Branch /wp-admin/post-new.php?post_type=mootree | 2.05 | 6.72 |
WP Moo Tree /wp-admin/options-general.php?page=wp-moo-tree-dimad | 2.05 | 8.32 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Wordpress MooTools Tree Creator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲178 | 13.71 ▼0.67 | 7.42 ▲5.64 | 40.78 ▼2.40 |
Dashboard /wp-admin | 2,246 ▲58 | 4.87 ▼0.02 | 100.16 ▼14.36 | 41.52 ▼1.22 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 1.99 ▲0.00 | 41.80 ▲2.89 | 36.88 ▲0.91 |
Add New Post /wp-admin/post-new.php | 1,562 ▲43 | 23.28 ▲0.22 | 625.38 ▼18.44 | 50.13 ▼1.14 |
Media Library /wp-admin/upload.php | 1,428 ▲43 | 4.23 ▲0.04 | 95.87 ▼30.90 | 41.38 ▼8.33 |
Tree Categories /wp-admin/edit-tags.php?taxonomy=tree-categories&post_type=mootree | 1,527 | 2.15 | 26.81 | 32.83 |
All Branches /wp-admin/edit.php?post_type=mootree | 1,093 | 2.00 | 31.92 | 32.55 |
Add New Branch /wp-admin/post-new.php?post_type=mootree | 1,964 | 3.54 | 64.85 | 37.11 |
WP Moo Tree /wp-admin/options-general.php?page=wp-moo-tree-dimad | 1,114 | 1.71 | 27.13 | 78.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/wp-moo-tree/tree-shortcode.php+122
Declaration of Mootree_walker::start_el(&$output, $page, $depth, $args, $current_page = 0) should be compatible with Walker_Page::start_el(&$output, $data_object, $depth = 0, $args = Array, $current_object_id = 0)
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-moo-tree-dimad
- > Warning in wp-content/plugins/wp-moo-tree/tree-shortcode.php+122
Declaration of Mootree_walker::start_el(&$output, $page, $depth, $args, $current_page = 0) should be compatible with Walker_Page::start_el(&$output, $data_object, $depth = 0, $args = Array, $current_object_id = 0)
- > GET request to /wp-admin/post-new.php?post_type=mootree
- > Notice in wp-content/plugins/wp-moo-tree/tree-type.php+234
Undefined index: mt_branch_miscellaneous
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
The following issues need your attention
- 3× 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-moo-tree/tree-type.php:46
- > PHP Fatal error
Uncaught Error: Class 'Walker_page' not found in wp-content/plugins/wp-moo-tree/tree-shortcode.php:120
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-moo-tree/wp-moo-tree.php:47
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/post-new.php?post_type=mootree
- > Network (severe)
wp-content/plugins/wp-moo-tree/images/bg-input.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: You are using too many tags: 14 tag instead of maximum 10
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp-moo-tree ===
)
wp-moo-tree/wp-moo-tree.php Passed 13 tests
This is the main PHP file of "Wordpress MooTools Tree Creator" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
61 characters long description:
Generates file, geneology, etc., trees via custom post types.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Please make sure to remedy the following
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/wp-moo-tree/docs/make_docs.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 359 | 415 | 927 |
CSS | 4 | 174 | 53 | 724 |
PHP | 4 | 137 | 139 | 692 |
HTML | 22 | 261 | 218 | 144 |
DOS Batch | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 17.00 |
▷ Minimum method complexity | 7.00 |
▷ Maximum method complexity | 27.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 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 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
imgs/colexp.png | 13.53KB | 5.12KB | ▼ 62.12% |
imgs/treeicon16.png | 1.80KB | 0.87KB | ▼ 51.57% |
imgs/treeicon32.png | 3.69KB | 1.66KB | ▼ 55.08% |