Benchmarks
Plugin footprint Passed 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.01MB] [CPU: ▼300.95ms] Passed 4 tests
A check of server-side resources used by JSON Cache Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 52.08 ▼2.36 |
Dashboard /wp-admin | 3.44 ▲0.03 | 32.98 ▲0.10 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 37.80 ▲1.08 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 102.10 ▼1,199.78 |
Media Library /wp-admin/upload.php | 3.32 ▲0.03 | 24.38 ▼1.77 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
JSON Cache Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,815 ▲71 | 15.88 ▲0.31 | 6.06 ▼0.40 | 2.40 ▲0.19 |
Dashboard /wp-admin | 2,911 ▲57 | 6.00 ▼0.19 | 117.35 ▼18.16 | 178.03 ▲17.02 |
Posts /wp-admin/edit.php | 2,708 ▲14 | 3.14 ▼0.10 | 64.66 ▼1.39 | 144.69 ▼2.32 |
Add New Post /wp-admin/post-new.php | 1,681 ▲20 | 19.02 ▲2.55 | 425.27 ▼25.12 | 175.76 ▲16.24 |
Media Library /wp-admin/upload.php | 1,715 ▲17 | 5.49 ▼0.06 | 129.06 ▼29.28 | 204.85 ▲13.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/json-cache/jsoncache.php:126
- > PHP Fatal error
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 on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Menu Setting of JSON Cache to generate the cache. assets/screenshot-1.png) image required
json-cache/jsoncache.php 85% from 13 tests
The principal PHP file in "JSON Cache Plugin" v. v0.1 is loaded by WordPress automatically on each request
The following require your attention:
- Version: The plugin version was missing
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("json-cache.php" instead of "jsoncache.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected236 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 36 | 72 | 191 |
Markdown | 1 | 15 | 0 | 45 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 21.43% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
check-icon.png | 1.17KB | 1.17KB | 0.08% |
assets/screenshot-1.png | 58.94KB | 18.91KB | ▼ 67.91% |
cache_icon.png | 1.59KB | 0.80KB | ▼ 49.69% |
delete-icon.png | 0.41KB | 0.44KB | 0.00% |
warning.png | 1.92KB | 1.66KB | ▼ 13.47% |