Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼2.84ms] Passed 4 tests
Server-side resources used by JSON Dashboard Infos
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 36.42 ▼4.48 |
Dashboard /wp-admin | 3.41 ▲0.11 | 46.95 ▼2.85 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 46.07 ▼6.66 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 100.79 ▲7.41 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.80 ▲2.64 |
JSON Dashboard Infos /wp-admin/options-general.php?page=json-dashboard-infos/index.php | 3.30 | 42.86 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
jsondi |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for JSON Dashboard Infos
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲49 | 13.37 ▼1.01 | 4.22 ▲2.33 | 41.10 ▲1.58 |
Dashboard /wp-admin | 2,212 ▲24 | 5.79 ▼0.07 | 97.41 ▼1.78 | 41.94 ▲3.96 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.00 ▼0.01 | 37.05 ▼3.72 | 36.13 ▲0.85 |
Add New Post /wp-admin/post-new.php | 1,533 ▲12 | 23.34 ▲0.10 | 622.71 ▼57.69 | 61.50 ▲6.26 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.20 ▼0.02 | 93.81 ▼6.53 | 41.90 ▼4.87 |
JSON Dashboard Infos /wp-admin/options-general.php?page=json-dashboard-infos/index.php | 1,211 | 1.69 | 21.85 | 61.27 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- jsondi
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
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 server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=json-dashboard-infos/index.php
- > Notice in wp-content/plugins/json-dashboard-infos/includes/tools.php+132
Undefined variable: sz
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=json-dashboard-infos/index.php
- > Notice in wp-content/plugins/json-dashboard-infos/includes/tools.php+132
Trying to access array offset on value of type null
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=json-dashboard-infos/index.php
- > Notice in wp-content/plugins/json-dashboard-infos/includes/tools.php+132
String offset cast occurred
- > GET request to /wp-admin/options-general.php?page=json-dashboard-infos/index.php
- > Notice in wp-content/plugins/json-dashboard-infos/includes/get_datas.php+349
Array to string conversion
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/json-dashboard-infos/index.php:38
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: stats, export data, api, comments, json...
json-dashboard-infos/index.php 92% from 13 tests
The entry point to "JSON Dashboard Infos" version 1.0.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("json-dashboard-infos.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected808 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 108 | 238 | 681 |
PO File | 1 | 27 | 29 | 76 |
CSS | 1 | 8 | 0 | 51 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.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 | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.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 | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.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
3 PNG files occupy 0.42MB with 0.30MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 140.12KB | 39.25KB | ▼ 71.99% |
screenshot-1.png | 234.64KB | 72.45KB | ▼ 69.12% |
screenshot-3.png | 60.26KB | 15.67KB | ▼ 73.99% |