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 gracefully, with no errors
Server metrics [RAM: ▲0.22MB] [CPU: ▼2.09ms] Passed 4 tests
This is a short check of server-side resources used by Hamecache
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 45.62 ▼2.61 |
Dashboard /wp-admin | 3.53 ▲0.22 | 54.47 ▲2.62 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 53.58 ▲1.92 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 90.65 ▼10.28 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 38.71 ▲3.04 |
Cache Setting /wp-admin/options-general.php?page=hamecache | 3.42 | 35.44 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Hamecache
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲192 | 13.62 ▼0.66 | 14.49 ▲12.76 | 45.34 ▲3.69 |
Dashboard /wp-admin | 2,204 ▲24 | 5.59 ▲0.02 | 87.04 ▼2.25 | 42.31 ▼0.83 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.95 ▼0.06 | 39.96 ▲2.53 | 37.51 ▼0.92 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.62 ▲0.39 | 611.65 ▼103.00 | 49.33 ▼0.40 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.21 ▼0.00 | 94.70 ▼8.14 | 41.83 ▼5.31 |
Cache Setting /wp-admin/options-general.php?page=hamecache | 940 | 2.17 | 24.76 | 30.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/hamecache/app/Hametuha/Hamecache/Command.php:14
- > PHP Fatal error
Uncaught Error: Class 'Hametuha\\Hamecache\\Pattern\\Singleton' not found in wp-content/plugins/hamecache/app/Hametuha/Hamecache/Option.php:24
- > PHP Fatal error
Uncaught Error: Class 'Hametuha\\Hamecache\\Pattern\\Singleton' not found in wp-content/plugins/hamecache/app/Hametuha/Hamecache/Purger.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: cloudflare, cache
hamecache/hamecache.php 92% from 13 tests
"Hamecache" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,164 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 138 | 434 | 1,007 |
Sass | 1 | 13 | 0 | 111 |
JavaScript | 2 | 5 | 10 | 44 |
CSS | 1 | 1 | 1 | 1 |
JSON | 1 | 0 | 0 | 1 |
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.47 |
Average class complexity | 20.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 4 | 7.55% |
▷ Public methods | 47 | 88.68% |
▷ Protected methods | 4 | 7.55% |
▷ Private methods | 2 | 3.77% |
Functions | 21 | |
▷ Named functions | 8 | 38.10% |
▷ Anonymous functions | 13 | 61.90% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin