Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼268.03ms] Passed 4 tests
This is a short check of server-side resources used by ShortCache
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 32.24 ▲11.12 |
Dashboard /wp-admin | 3.08 ▲0.02 | 40.41 ▼1.37 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 46.72 ▲2.41 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 97.25 ▼1,063.89 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 31.68 ▼9.27 |
ShortCache /wp-admin/options-general.php?page=shortcache-settings | 2.99 | 29.78 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by ShortCache
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,678 ▲72 | 15.83 ▲0.30 | 8.26 ▼0.21 | 45.94 ▲1.44 |
Dashboard /wp-admin | 2,932 ▲79 | 5.93 ▲0.06 | 155.95 ▲17.84 | 100.83 ▼3.85 |
Posts /wp-admin/edit.php | 2,708 ▲2 | 2.69 ▲0.00 | 68.31 ▲4.16 | 89.47 ▼6.70 |
Add New Post /wp-admin/post-new.php | 1,654 ▼3 | 17.47 ▼1.38 | 343.34 ▼34.12 | 101.24 ▼2.09 |
Media Library /wp-admin/upload.php | 1,774 ▲2 | 5.03 ▲0.04 | 149.55 ▼20.11 | 115.66 ▲0.73 |
ShortCache /wp-admin/options-general.php?page=shortcache-settings | 1,053 | 2.09 | 53.04 | 71.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
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
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shortcache/shortcache.php:17
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: shortcode, shortcode caching, caching, cache
shortcache/shortcache.php Passed 13 tests
"ShortCache" version 0.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
33 characters long description:
A shortcode fragment cache plugin
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
Success! There were no dangerous files found in this plugin552 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 18 | 144 | 552 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 16 | 53.33% |
▷ Public methods | 19 | 63.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 36.67% |
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 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected