Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/lmwd-ziptree/lmwd-tree-zip.php+28
Undefined index: page
Server metrics [RAM: ▼1.95MB] [CPU: ▼61.44ms] Passed 4 tests
This is a short check of server-side resources used by LMWD Tree Zip
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.41 | 4.44 ▼38.42 |
Dashboard /wp-admin | 2.08 ▼1.27 | 5.65 ▼61.58 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 6.59 ▼44.23 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.35 ▼101.52 |
Media Library /wp-admin/upload.php | 2.08 ▼1.16 | 4.93 ▼37.09 |
ZipTree /wp-admin/options-general.php?page=ZipTree | 3.00 | 23.90 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for LMWD Tree Zip
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲32 | 14.24 ▼0.04 | 1.92 ▼0.24 | 43.69 ▼3.22 |
Dashboard /wp-admin | 2,193 ▲16 | 5.52 ▼0.01 | 85.04 ▼7.63 | 38.35 ▼2.77 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.98 ▼0.05 | 33.65 ▼8.39 | 33.96 ▼6.10 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 22.87 ▼0.26 | 678.58 ▼55.74 | 57.45 ▼0.33 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.22 ▲0.03 | 101.18 ▼5.27 | 45.62 ▼2.36 |
ZipTree /wp-admin/options-general.php?page=ZipTree | 810 | 2.04 | 26.04 | 31.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/lmwd-ziptree/lmwd-tree-zip.php+28
Undefined index: page
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ZipTree
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ZipTree
- > Notice in wp-content/plugins/lmwd-ziptree/lmwd-defines.php+3
Constant DS already defined
SRP 0% 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× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/lmwd-ziptree/lmwd_ziptree_admin.php
- 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: ztd in wp-content/plugins/lmwd-ziptree/lmwd_ziptree_admin.php on line 16
- > PHP Warning
Use of undefined constant DS - assumed 'DS' (this will throw an Error in a future version of PHP) in wp-content/plugins/lmwd-ziptree/lmwd_ziptree_admin.php on line 16
- > PHP Notice
Undefined index: page in wp-content/plugins/lmwd-ziptree/lmwd-tree-zip.php on line 28
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/lmwd-ziptree/lmwd-defines.php:4
- > PHP Notice
Undefined variable: uploads in wp-content/plugins/lmwd-ziptree/lmwd_ziptree_admin.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/lmwd-ziptree/lmwd-defines.php:4
- > PHP Warning
sort() expects parameter 1 to be array, null given in wp-content/plugins/lmwd-ziptree/lmwd_ziptree_admin.php on line 28
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/lmwd-ziptree/lmwd-defines.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lmwd-ziptree/lmwd-tree-zip.php:56
- > PHP Warning
Use of undefined constant DS - assumed 'DS' (this will throw an Error in a future version of PHP) in wp-content/plugins/lmwd-ziptree/lmwd_ziptree_admin.php on line 9
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Please a description for screenshot #2 in lmwd-ziptree/assets to your readme.txt
- Plugin Name: Please specify the plugin name on the first line (
=== lmwd-ziptree ===
)
lmwd-ziptree/lmwd-tree-zip.php 92% from 13 tests
"LMWD Tree Zip" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("lmwd-ziptree.php" instead of "lmwd-tree-zip.php")
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 plugin610 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 53 | 45 | 297 |
JavaScript | 1 | 26 | 13 | 140 |
SVG | 1 | 0 | 0 | 92 |
CSS | 1 | 1 | 1 | 81 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 3.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 50.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
No PNG images were found in this plugin