Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/warp-cache/includes/class-warp-cache-activator.php+50
Trying to get property 'ruleGroups' of non-object
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.25ms] Passed 4 tests
Server-side resources used by Warp Cache
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 40.52 ▼0.50 |
Dashboard /wp-admin | 3.36 ▲0.01 | 48.53 ▼18.96 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 49.29 ▼0.58 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 91.45 ▼12.94 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.89 ▼0.46 |
Warp Cache /wp-admin/options-general.php?page=warp-cache | 3.25 | 34.20 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- Illegal file modification found: 1 file (1.83KB) outside of "wp-content/plugins/warp-cache/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Warp Cache: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲55 | 14.39 ▲0.03 | 1.77 ▼0.02 | 43.47 ▼1.10 |
Dashboard /wp-admin | 2,198 ▲24 | 5.63 ▼0.03 | 87.87 ▼8.73 | 41.74 ▼6.46 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.06 ▲0.06 | 37.44 ▼1.14 | 33.96 ▼1.08 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.38 ▲5.74 | 683.64 ▼37.89 | 62.39 ▲9.51 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.23 ▼0.00 | 99.97 ▼27.08 | 43.11 ▼11.86 |
Warp Cache /wp-admin/options-general.php?page=warp-cache | 842 | 2.05 | 21.97 | 42.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/warp-cache/public/partials/warp-cache-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/warp-cache/admin/partials/warp-cache-admin-display.php:21
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=warp-cache
- > Network (severe)
https://www.googleapis.com/pagespeedonline/v2/runPagespeed?url=&callback=runPagespeedCallbacks&key=AIzaSyAGSsnZvEQhnJkL7z1LjNvwClp9F9NRAec - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== warp-cache ===
) - Tested up to: Invalid plugin version format
warp-cache/warp-cache.php Passed 13 tests
This is the main PHP file of "Warp Cache" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
82 characters long description:
Simple, light and powerful cache plugin. Plug and play. No customisation required.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin422 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 148 | 551 | 263 |
CSS | 2 | 15 | 10 | 85 |
JavaScript | 2 | 15 | 49 | 74 |
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.05 |
Average class complexity | 1.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 42.13KB | 15.64KB | ▼ 62.89% |