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: ▲0.54MB] [CPU: ▼3.19ms] Passed 4 tests
Server-side resources used by Cache Enabler
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.61 | 42.03 ▼0.11 |
Dashboard /wp-admin | 3.75 ▲0.45 | 49.13 ▼0.04 |
Posts /wp-admin/edit.php | 3.97 ▲0.61 | 52.84 ▲3.64 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.55 | 85.82 ▼16.24 |
Media Library /wp-admin/upload.php | 3.78 ▲0.55 | 41.93 ▲9.55 |
Cache Enabler /wp-admin/options-general.php?page=cache-enabler | 3.74 | 35.49 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Just a few items left to fix
- Illegal file modification detected: 3 files (7.20KB) outside of "wp-content/plugins/cache-enabler/" and "wp-content/uploads/"
- (modified) wp-config.php
- (new file) wp-content/advanced-cache.php
- (new file) wp-content/settings/cache-enabler/wp.com.php
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
cache_enabler |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Cache Enabler: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 13.16 ▼1.25 | 1.67 ▲0.07 | 42.52 ▼0.23 |
Dashboard /wp-admin | 2,229 ▲37 | 5.87 ▲0.91 | 105.37 ▲1.95 | 42.18 ▼2.73 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.01 ▼0.02 | 38.24 ▲0.61 | 33.96 ▼3.20 |
Add New Post /wp-admin/post-new.php | 1,526 ▲7 | 23.26 ▲0.02 | 649.40 ▼32.01 | 57.22 ▲1.59 |
Media Library /wp-admin/upload.php | 1,399 ▲14 | 4.20 ▲0.01 | 94.30 ▼6.80 | 41.36 ▼2.37 |
Cache Enabler /wp-admin/options-general.php?page=cache-enabler | 1,048 | 2.06 | 23.39 | 35.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/cache-enabler/inc/cache_enabler_disk.class.php+1356
rmdir(wp-content): Directory not empty
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Please fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/cache-enabler/constants.php on line 16
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/cache-enabler/constants.php on line 18
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/cache-enabler/constants.php on line 15
- > PHP Warning
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 issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: gzip, caching, webp, performance, mobile...
cache-enabler/cache-enabler.php Passed 13 tests
The main PHP script in "Cache Enabler" version 1.8.13 is automatically included on every request by WordPress
41 characters long description:
Simple and fast WordPress caching 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
Good job! No executable or dangerous file extensions detected2,526 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 803 | 1,866 | 2,497 |
CSS | 2 | 6 | 1 | 29 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 136.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 238.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 3 | 75.00% |
Methods | 155 | |
▷ Static methods | 152 | 98.06% |
▷ Public methods | 111 | 71.61% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 44 | 28.39% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin