Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.35MB] [CPU: ▼1.63ms] Passed 4 tests
This is a short check of server-side resources used by Cache Master
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 36.82 ▼2.26 |
Dashboard /wp-admin | 3.71 ▲0.41 | 46.04 ▼7.04 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 49.21 ▲0.97 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 96.32 ▲1.80 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 46.34 ▲12.80 |
Expert Mode /wp-admin/admin.php?page=cache-master-expert-mode | 3.58 | 32.63 |
Statistics /wp-admin/admin.php?page=cache-master-statistics | 3.58 | 34.81 |
About /wp-admin/admin.php?page=cache-master-about | 3.55 | 30.99 |
Settings /wp-admin/admin.php?page=cache-master-settings | 3.87 | 50.04 |
Server storage [IO: ▲1.75MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 166 new files
Database: 1 new table, 39 new options
New tables |
---|
cache_data |
New WordPress options |
---|
scm_option_visibility_guest |
scm_last_reset_time |
scm_option_html_debug_comment |
scm_option_post_archives |
scm_option_post_homepage |
scm_option_woocommerce_post_types |
scm_option_driver |
scm_option_excluded_list_filtered |
scm_option_excluded_get_variables |
scm_option_clear_cache |
... |
Browser metrics Passed 4 tests
Cache Master: 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 / | 2,956 ▲210 | 13.68 ▼0.91 | 6.00 ▲4.32 | 40.89 ▲3.05 |
Dashboard /wp-admin | 2,252 ▲60 | 5.88 ▲0.90 | 100.91 ▼7.77 | 80.24 ▲40.39 |
Posts /wp-admin/edit.php | 2,141 ▲52 | 2.01 ▼0.00 | 40.01 ▲0.69 | 36.22 ▲0.72 |
Add New Post /wp-admin/post-new.php | 1,720 ▲187 | 24.84 ▲1.79 | 693.24 ▲17.13 | 64.61 ▲9.88 |
Media Library /wp-admin/upload.php | 1,428 ▲40 | 4.16 ▼0.06 | 94.91 ▼13.95 | 75.33 ▲26.89 |
Expert Mode /wp-admin/admin.php?page=cache-master-expert-mode | 1,030 | 2.14 | 37.92 | 44.97 |
Statistics /wp-admin/admin.php?page=cache-master-statistics | 950 | 2.15 | 30.20 | 30.03 |
About /wp-admin/admin.php?page=cache-master-about | 912 | 2.08 | 28.57 | 48.87 |
Settings /wp-admin/admin.php?page=cache-master-settings | 1,371 | 2.22 | 27.97 | 27.39 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie tables detected upon uninstall: 1 table
- cache_data
- The uninstall procedure has failed, leaving 13 options in the database
- scm_dir_hash
- scm_last_reset_time
- scm_blog_id
- db_upgraded
- scm_version
- widget_theysaidso_widget
- widget_recent-posts
- scm_option_excluded_get_variables
- theysaidso_admin_options
- widget_recent-comments
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
- 30× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\SimpleCache\\InvalidArgumentException' not found in wp-content/plugins/cache-master/vendor/shieldon/simple-cache/src/SimpleCache/Exception/CacheArgumentException.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\SimpleCache\\CacheInterface' not found in wp-content/plugins/cache-master/vendor/shieldon/simple-cache/src/SimpleCache/CacheProvider.php:27
- > PHP Fatal error
Uncaught Error: Class 'Shieldon\\Test\\SimpleCache\\DriverIntegrationTestCase' not found in wp-content/plugins/cache-master/vendor/shieldon/simple-cache/tests/SimpleCache/Driver/FileTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Shieldon\\SimpleCache\\CacheProvider' not found in wp-content/plugins/cache-master/vendor/shieldon/simple-cache/src/SimpleCache/Driver/Mysql.php:26
- > PHP Fatal error
Uncaught Error: Class 'Shieldon\\SimpleCache\\CacheProvider' not found in wp-content/plugins/cache-master/vendor/shieldon/simple-cache/src/SimpleCache/Driver/Mongo.php:31
- > PHP Fatal error
Uncaught Error: Class 'Shieldon\\Test\\SimpleCache\\DriverIntegrationTestCase' not found in wp-content/plugins/cache-master/vendor/shieldon/simple-cache/tests/SimpleCache/Driver/MongoTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Shieldon\\Test\\SimpleCache\\DriverIntegrationTestCase' not found in wp-content/plugins/cache-master/vendor/shieldon/simple-cache/tests/SimpleCache/Driver/ApcTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Shieldon\\SimpleCache\\CacheProvider' not found in wp-content/plugins/cache-master/vendor/shieldon/simple-cache/src/SimpleCache/Driver/Apc.php:36
- > PHP Fatal error
Uncaught Error: Class 'Shieldon\\Test\\SimpleCache\\DriverIntegrationTestCase' not found in wp-content/plugins/cache-master/vendor/shieldon/simple-cache/tests/SimpleCache/Driver/RedisTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Shieldon\\Test\\SimpleCache\\CacheTestCase' not found in wp-content/plugins/cache-master/vendor/shieldon/simple-cache/tests/SimpleCache/CacheTest.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: apcu, mongodb, redis, memcached, cache...
cache-master/cache-master.php Passed 13 tests
The entry point to "Cache Master" version 2.1.3 is a PHP file that has certain tags in its header comment area
25 characters long description:
A WordPress cache plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin9,431 lines of code in 121 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 98 | 1,610 | 2,646 | 6,557 |
PO File | 3 | 498 | 709 | 1,191 |
Markdown | 3 | 139 | 0 | 420 |
CSS | 2 | 44 | 8 | 352 |
Sass | 1 | 78 | 0 | 292 |
JSON | 3 | 0 | 0 | 183 |
YAML | 4 | 31 | 6 | 170 |
XML | 2 | 2 | 1 | 157 |
Bourne Shell | 2 | 12 | 0 | 56 |
Dockerfile | 1 | 12 | 4 | 43 |
Ruby | 1 | 7 | 15 | 9 |
JavaScript | 1 | 0 | 5 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 3 | |
Traits | 3 | |
Classes | 36 | |
▷ Abstract classes | 2 | 5.56% |
▷ Concrete classes | 34 | 94.44% |
▷ Final classes | 0 | 0.00% |
Methods | 271 | |
▷ Static methods | 15 | 5.54% |
▷ Public methods | 172 | 63.47% |
▷ Protected methods | 77 | 28.41% |
▷ Private methods | 22 | 8.12% |
Functions | 94 | |
▷ Named functions | 63 | 67.02% |
▷ Anonymous functions | 31 | 32.98% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
32 PNG files occupy 1.23MB with 0.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/assets/images/sample-benchmark-widget-1.png | 7.56KB | 3.45KB | ▼ 54.38% |
inc/assets/images/screenshots/screenshot-11.png | 44.14KB | 20.07KB | ▼ 54.53% |
inc/assets/images/logo.png | 4.13KB | 1.83KB | ▼ 55.73% |
inc/assets/images/sample-expert-mode.png | 19.51KB | 8.37KB | ▼ 57.08% |
inc/assets/images/icon-256x256.png | 12.66KB | 4.66KB | ▼ 63.17% |