Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼1.05ms] Passed 4 tests
Server-side resources used by JSON Options
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 39.73 ▼1.34 |
Dashboard /wp-admin | 3.43 ▲0.13 | 47.33 ▼2.85 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 51.79 ▲6.75 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 94.44 ▼2.44 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 37.00 ▲2.44 |
- Import JSON /wp-admin/admin.php?page=json_options_import | 3.29 | 31.48 |
- Export JSON /wp-admin/admin.php?page=json_options_export | 3.29 | 30.67 |
JSON Options /wp-admin/admin.php?page=json_options | 3.32 | 33.28 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
json_options_filters_available |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for JSON Options
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 14.47 ▲0.11 | 1.82 ▲0.06 | 43.59 ▼5.98 |
Dashboard /wp-admin | 2,237 ▲49 | 5.78 ▲0.69 | 100.21 ▼2.15 | 39.58 ▼5.24 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.00 ▼0.03 | 40.48 ▼5.76 | 35.35 ▼2.73 |
Add New Post /wp-admin/post-new.php | 1,558 ▲23 | 23.07 ▲0.02 | 610.35 ▼74.08 | 61.39 ▲4.60 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.21 ▼0.06 | 102.16 ▲6.52 | 42.19 ▼0.25 |
- Import JSON /wp-admin/admin.php?page=json_options_import | 1,003 | 2.02 | 23.05 | 30.60 |
- Export JSON /wp-admin/admin.php?page=json_options_export | 1,006 | 2.05 | 23.10 | 26.51 |
JSON Options /wp-admin/admin.php?page=json_options | 935 | 2.05 | 24.06 | 26.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- json_options_filters_available
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=json_options_export
- > Notice in wp-content/plugins/json-options/json-options.php+377
Undefined index: description
- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=json_options_export
- > Notice in wp-content/plugins/json-options/json-options.php+453
Undefined index: selected
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/json-options/json-options.php:772
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
json-options/json-options.php 92% from 13 tests
"JSON Options" version 0.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 427 characters long)
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 plugin692 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 0 | 85 | 692 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 112.00 |
▷ Minimum class complexity | 112.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 8.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 33.33% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin