Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.86MB] [CPU: ▲10.92ms] Passed 4 tests
This is a short check of server-side resources used by The Cache Purger
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.35 ▲1.88 | 60.65 ▲15.09 |
Dashboard /wp-admin | 5.18 ▲1.83 | 68.76 ▼1.53 |
Posts /wp-admin/edit.php | 5.23 ▲1.87 | 72.04 ▲28.60 |
Add New Post /wp-admin/post-new.php | 7.77 ▲1.87 | 112.73 ▲7.30 |
Media Library /wp-admin/upload.php | 5.12 ▲1.89 | 61.42 ▲22.81 |
Server storage [IO: ▲1.91MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 243 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
kpcp_settings |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for The Cache Purger
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲88 | 14.35 ▼0.18 | 1.77 ▲0.13 | 42.67 ▼1.86 |
Dashboard /wp-admin | 2,244 ▲64 | 5.67 ▲0.02 | 84.67 ▼10.58 | 40.36 ▲0.67 |
Posts /wp-admin/edit.php | 2,152 ▲49 | 2.01 ▼0.06 | 40.53 ▼0.86 | 35.42 ▼1.28 |
Add New Post /wp-admin/post-new.php | 1,563 ▲26 | 22.18 ▲3.70 | 683.51 ▲42.93 | 66.02 ▼4.91 |
Media Library /wp-admin/upload.php | 1,455 ▲55 | 4.18 ▲0.02 | 102.47 ▲4.92 | 47.41 ▲4.73 |
API/Server Settings /wp-admin/admin.php?page=kpcp_settings#tab=api-server-settings | 2,752 | 3.74 | 65.32 | 49.89 |
Export/Import Settings /wp-admin/admin.php?page=kpcp_settings#tab=export-import-settings | 2,730 | 3.72 | 49.61 | 34.79 |
Settings /wp-admin/admin.php?page=kpcp_settings#tab=settings | 2,896 | 3.88 | 69.84 | 46.12 |
Documentation /wp-admin/admin.php?page=kpcp_settings#tab=documentation | 2,891 | 3.60 | 47.44 | 51.95 |
CRON Action Settings /wp-admin/admin.php?page=kpcp_settings#tab=cron-action-settings | 2,730 | 3.54 | 48.03 | 33.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-includes/option.php+2520
Trying to access array offset on value of type null
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 80× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/the-cache-purger/assets/index.php
- > /wp-content/plugins/the-cache-purger/work/index.php
- > /wp-content/plugins/the-cache-purger/work/inc/modules/index.php
- > /wp-content/plugins/the-cache-purger/vendor/custom-fields/assets/scss/index.php
- > /wp-content/plugins/the-cache-purger/vendor/custom-fields/fields/gallery/index.php
- > /wp-content/plugins/the-cache-purger/work/inc/modules/hosting.php
- > /wp-content/plugins/the-cache-purger/vendor/custom-fields/fields/palette/index.php
- > /wp-content/plugins/the-cache-purger/the-cache-purger.php
- > /wp-content/plugins/the-cache-purger/vendor/custom-fields/fields/border/index.php
- > /wp-content/plugins/the-cache-purger/vendor/custom-fields/fields/text/index.php
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)
No browser errors were detected
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
4 plugin tags: cache purging, remote cache, caching, purge cache
the-cache-purger/the-cache-purger.php Passed 13 tests
The entry point to "The Cache Purger" version 1.7.11 is a PHP file that has certain tags in its header comment area
65 characters long description:
Plugin attemps to clear all plugin based and server based caches.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin37,176 lines of code in 156 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 96 | 3,718 | 3,588 | 9,747 |
Sass | 28 | 1,746 | 6 | 9,457 |
JavaScript | 5 | 1,300 | 497 | 6,564 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
CSS | 6 | 376 | 509 | 4,903 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 23.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 5.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 10 | |
Classes | 70 | |
▷ Abstract classes | 2 | 2.86% |
▷ Concrete classes | 68 | 97.14% |
▷ Final classes | 0 | 0.00% |
Methods | 362 | |
▷ Static methods | 66 | 18.23% |
▷ Public methods | 292 | 80.66% |
▷ Protected methods | 45 | 12.43% |
▷ Private methods | 25 | 6.91% |
Functions | 43 | |
▷ Named functions | 21 | 48.84% |
▷ Anonymous functions | 22 | 51.16% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/custom-fields/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |