Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼4.24ms] Passed 4 tests
An overview of server-side resources used by Rapid Cache
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.24 | 39.98 ▲0.26 |
Dashboard /wp-admin | 3.51 ▲0.16 | 46.68 ▼14.07 |
Posts /wp-admin/edit.php | 4.05 ▲0.69 | 53.22 ▲5.95 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 86.92 ▼9.09 |
Media Library /wp-admin/upload.php | 3.44 ▲0.20 | 40.78 ▲6.24 |
Server storage [IO: ▲2.55MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 153 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Rapid Cache: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.34 ▼0.28 | 1.68 ▼0.01 | 42.11 ▼1.81 |
Dashboard /wp-admin | 2,207 ▲26 | 5.57 ▼0.15 | 82.49 ▼33.08 | 64.97 ▲21.46 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.11 ▲0.08 | 34.42 ▼3.56 | 32.79 ▼2.18 |
Add New Post /wp-admin/post-new.php | 1,692 ▲166 | 22.23 ▼1.43 | 765.60 ▲116.65 | 60.06 ▲2.80 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.21 ▲0.02 | 96.62 ▼9.82 | 77.63 ▲32.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 6× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/rapid-cache/includes/stub.php
- > /wp-content/plugins/rapid-cache/includes/plugin.php
- > /wp-content/plugins/rapid-cache/rapid-cache.php
- > /wp-content/plugins/rapid-cache/includes/uninstall.php
- > /wp-content/plugins/rapid-cache/requirements.php
- > /wp-content/plugins/rapid-cache/uninstall.php
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'MegaOptim\\RapidCache\\Classes\\AbsBase' not found in wp-content/plugins/rapid-cache/includes/src/Classes/AbsBaseAp.php:18
- > PHP Fatal error
Uncaught Error: Class 'MegaOptim\\RapidCache\\Classes\\AbsBase' not found in wp-content/plugins/rapid-cache/includes/src/Classes/Notes.php:18
- > PHP Fatal error
Uncaught Error: Class 'MegaOptim\\RapidCache\\Classes\\AbsBase' not found in wp-content/plugins/rapid-cache/includes/src/Classes/VsUpgrades.php:16
- > PHP Fatal error
Uncaught Error: Class 'MegaOptim\\RapidCache\\Classes\\AbsBase' not found in wp-content/plugins/rapid-cache/includes/src/Classes/MenuPage.php:18
- > PHP Fatal error
Uncaught Error: Interface 'MegaOptim\\RapidCache\\Interfaces\\Shared\cDebugConsts' not found in wp-content/plugins/rapid-cache/includes/src/Classes/AbsBase.php:18
- > PHP Fatal error
Uncaught Error: Class 'MegaOptim\\RapidCache\\Classes\\AbsBaseAp' not found in wp-content/plugins/rapid-cache/includes/src/Classes/AdvancedCache.php:18
- > PHP Fatal error
Uncaught Error: Class 'MegaOptim\\RapidCache\\Classes\\AbsBaseAp' not found in wp-content/plugins/rapid-cache/includes/src/Classes/Plugin.php:19
- > PHP Fatal error
Uncaught Error: Class 'MegaOptim\\RapidCache\\Classes\\AbsBase' not found in wp-content/plugins/rapid-cache/includes/src/Classes/FeedUtils.php:16
- > PHP Fatal error
Uncaught Error: Class 'MegaOptim\\RapidCache\\Classes\\AbsBase' not found in wp-content/plugins/rapid-cache/includes/src/Classes/Actions.php:17
- > PHP Fatal error
Uncaught Error: Class 'MegaOptim\\RapidCache\\Classes\\MenuPage' not found in wp-content/plugins/rapid-cache/includes/src/Classes/MenuPageOptions.php:16
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
rapid-cache/rapid-cache.php Passed 13 tests
The principal PHP file in "Rapid Cache" v. 1.1.0 is loaded by WordPress automatically on each request
96 characters long description:
Rapid Cache is fork of Commet Cache and advanced WordPress caching plugin inspired by simplicity
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin13,702 lines of code in 111 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 98 | 1,921 | 4,659 | 12,371 |
SVG | 1 | 0 | 0 | 779 |
JavaScript | 4 | 88 | 0 | 385 |
JSON | 3 | 0 | 0 | 154 |
Markdown | 1 | 4 | 0 | 9 |
CSS | 4 | 2 | 2 | 4 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 147)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 27.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 6.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 147.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 2 | |
Traits | 60 | |
Classes | 19 | |
▷ Abstract classes | 2 | 10.53% |
▷ Concrete classes | 17 | 89.47% |
▷ Final classes | 1 | 5.88% |
Methods | 373 | |
▷ Static methods | 70 | 18.77% |
▷ Public methods | 348 | 93.30% |
▷ Protected methods | 17 | 4.56% |
▷ Private methods | 8 | 2.14% |
Functions | 62 | |
▷ Named functions | 52 | 83.87% |
▷ Anonymous functions | 10 | 16.13% |
Constants | 67 | |
▷ Global constants | 16 | 23.88% |
▷ Class constants | 51 | 76.12% |
▷ Public constants | 51 | 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
24 PNG files occupy 0.29MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/source-code-ss.png | 14.94KB | 5.16KB | ▼ 65.47% |
assets/images/options-logo.png | 10.64KB | 4.07KB | ▼ 61.78% |
assets/images/bg.png | 5.40KB | 5.40KB | 0.04% |
assets/images/tach.png | 7.37KB | 7.37KB | 0.04% |
assets/images/logo-menu.png | 4.39KB | 0.90KB | ▼ 79.50% |