Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.77ms] Passed 4 tests
A check of server-side resources used by WZM Json
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 47.09 ▲3.11 |
Dashboard /wp-admin | 3.38 ▲0.08 | 52.28 ▼7.36 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 56.30 ▲5.96 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 91.51 ▼12.77 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 52.25 ▲18.23 |
生成 Json 数据 /wp-admin/options-general.php?page=wzm-json | 3.27 | 39.87 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- Illegal file modification found: 1 file (0.45KB) outside of "wp-content/plugins/wzm-json/" and "wp-content/uploads/"
- (new file) wzm.json
Filesystem: 7 new files
Database: no new tables, 10 new options
New WordPress options |
---|
category_children |
can_compress_scripts |
widget_recent-comments |
wzm_json_update_time |
widget_recent-posts |
theysaidso_admin_options |
wzm_posts_per_page |
widget_theysaidso_widget |
db_upgraded |
wzm_products_per_page |
Browser metrics Passed 4 tests
A check of browser resources used by WZM Json
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.25 ▲0.13 | 1.68 ▼0.39 | 42.97 ▼3.45 |
Dashboard /wp-admin | 2,199 ▲19 | 5.55 ▼0.07 | 91.48 ▲4.41 | 43.06 ▲2.38 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.07 | 39.66 ▲3.05 | 43.82 ▲8.37 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.40 ▲0.22 | 666.60 ▼26.54 | 51.54 ▲0.10 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.21 ▲0.05 | 104.28 ▼1.23 | 50.17 ▲4.27 |
生成 Json 数据 /wp-admin/options-general.php?page=wzm-json | 975 | 2.17 | 25.44 | 60.70 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- category_children
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_next_scheduled() in wp-content/plugins/wzm-json/wzm-json-functions.php:304
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wzm-json/wzm-json-options.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wzm-json/wzm-json-regenerate.php:54
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Contributors: The plugin contributors field is missing
- Contributors: No valid plugin tags found
wzm-json/wzm-json.php 92% from 13 tests
Analyzing the main PHP file in "WZM Json" version 1.0.1
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 156 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin345 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 65 | 353 | 331 |
JavaScript | 1 | 0 | 3 | 14 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.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 | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 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
There were not PNG files found in your plugin