Benchmarks
Plugin footprint 83% 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: ▲0.26MB] [CPU: ▼0.24ms] Passed 4 tests
Server-side resources used by Comet Cache
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 43.28 ▲1.45 |
Dashboard /wp-admin | 3.55 ▲0.25 | 48.27 ▼0.57 |
Posts /wp-admin/edit.php | 4.09 ▲0.74 | 55.26 ▲11.31 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 90.13 ▼2.93 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 37.45 ▲1.10 |
Server storage [IO: ▲2.55MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 154 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Comet Cache
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲115 | 13.26 ▼1.11 | 4.67 ▲2.76 | 44.29 ▼0.84 |
Dashboard /wp-admin | 2,245 ▲57 | 4.87 ▼0.01 | 104.26 ▼14.91 | 40.07 ▼3.56 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.06 ▲0.01 | 36.09 ▼0.25 | 33.04 ▼2.28 |
Add New Post /wp-admin/post-new.php | 1,527 ▲13 | 17.97 ▲0.35 | 672.14 ▼26.71 | 54.18 ▼2.69 |
Media Library /wp-admin/upload.php | 1,428 ▲43 | 4.26 ▲0.03 | 98.58 ▼16.70 | 40.86 ▼6.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 8× PHP files output text when accessed directly:
- > /wp-content/plugins/comet-cache/src/includes/uninstall.php
- > /wp-content/plugins/comet-cache/src/includes/stub.php
- > /wp-content/plugins/comet-cache/src/includes/api.php
- > /wp-content/plugins/comet-cache/src/vendor/websharks/wp-php-rv/src/includes/check.php
- > /wp-content/plugins/comet-cache/uninstall.php
- > /wp-content/plugins/comet-cache/plugin.php
- > /wp-content/plugins/comet-cache/src/includes/plugin.php
- > /wp-content/plugins/comet-cache/comet-cache.php
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WebSharks\\CometCache\\Classes\\AbsBase' not found in wp-content/plugins/comet-cache/src/includes/classes/Notes.php:11
- > PHP Fatal error
Uncaught Error: Class 'WebSharks\\CometCache\\Classes\\AbsBaseAp' not found in wp-content/plugins/comet-cache/src/includes/classes/AdvancedCache.php:11
- > PHP Fatal error
Uncaught Error: Class 'WebSharks\\CometCache\\Classes\\AbsBaseAp' not found in wp-content/plugins/comet-cache/src/includes/classes/Plugin.php:12
- > PHP Fatal error
Uncaught Error: Class 'WebSharks\\CometCache\\Classes\\AbsBase' not found in wp-content/plugins/comet-cache/src/includes/classes/VsUpgrades.php:9
- > PHP Fatal error
Uncaught Error: Class 'WebSharks\\CometCache\\Classes\\AbsBase' not found in wp-content/plugins/comet-cache/src/includes/classes/FeedUtils.php:9
- > PHP Fatal error
Uncaught Error: Class 'WebSharks\\CometCache\\Classes\\MenuPage' not found in wp-content/plugins/comet-cache/src/includes/classes/MenuPageOptions.php:9
- > PHP Fatal error
Uncaught Error: Class 'WebSharks\\CometCache\\Classes\\AbsBase' not found in wp-content/plugins/comet-cache/src/includes/classes/AbsBaseAp.php:11
- > PHP Fatal error
Uncaught Error: Class 'WebSharks\\CometCache\\Classes\\AbsBase' not found in wp-content/plugins/comet-cache/src/includes/classes/Actions.php:9
- > PHP Fatal error
Uncaught Error: Class 'WebSharks\\CometCache\\Classes\\AbsBase' not found in wp-content/plugins/comet-cache/src/includes/classes/MenuPage.php:11
- > PHP Fatal error
Uncaught Error: Interface 'WebSharks\\CometCache\\Interfaces\\Shared\cDebugConsts' not found in wp-content/plugins/comet-cache/src/includes/classes/AbsBase.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
- Tested up to: The plugin version is formatted incorrectly
comet-cache/comet-cache.php 92% from 13 tests
This is the main PHP file of "Comet Cache" version 170220..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "170220...")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin9,906 lines of code in 109 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 96 | 1,700 | 4,047 | 8,669 |
SVG | 3 | 0 | 0 | 789 |
JavaScript | 4 | 136 | 0 | 328 |
JSON | 1 | 0 | 0 | 106 |
Markdown | 1 | 1 | 0 | 10 |
CSS | 4 | 4 | 2 | 4 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 190)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 27.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 190.00 |
Average method complexity | 7.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 190.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 2 | |
Traits | 60 | |
Classes | 15 | |
▷ Abstract classes | 2 | 13.33% |
▷ Concrete classes | 13 | 86.67% |
▷ Final classes | 0 | 0.00% |
Methods | 308 | |
▷ Static methods | 16 | 5.19% |
▷ Public methods | 289 | 93.83% |
▷ Protected methods | 18 | 5.84% |
▷ Private methods | 1 | 0.32% |
Functions | 22 | |
▷ Named functions | 14 | 63.64% |
▷ Anonymous functions | 8 | 36.36% |
Constants | 68 | |
▷ Global constants | 18 | 26.47% |
▷ Class constants | 50 | 73.53% |
▷ Public constants | 50 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
21 compressed PNG files occupy 0.25MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/client-s/images/options-lite.png | 5.86KB | 5.87KB | 0.00% |
src/client-s/images/clear.png | 0.69KB | 0.78KB | 0.00% |
src/client-s/images/spinner.png | 0.41KB | 0.33KB | ▼ 20.28% |
src/client-s/images/apache.png | 4.18KB | 4.16KB | 0.35% |
src/client-s/images/opcache.png | 1.46KB | 1.45KB | 0.27% |