10% warp-cache

Code Review | Warp Cache

WordPress plugin Warp Cache scored10%from 54 tests.

About plugin

  • Plugin page: warp-cache
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1+
  • WordPress version: 6.3.1
  • First release: Jun 30, 2016
  • Latest release: Jul 28, 2016
  • Number of updates: 15
  • Update frequency: every 1.9 days
  • Top authors: webpuls (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,190 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0440.52 ▼0.50
Dashboard /wp-admin3.36 ▲0.0148.53 ▼18.96
Posts /wp-admin/edit.php3.47 ▲0.1149.29 ▼0.58
Add New Post /wp-admin/post-new.php5.96 ▲0.0791.45 ▼12.94
Media Library /wp-admin/upload.php3.28 ▲0.0537.89 ▼0.46
Warp Cache /wp-admin/options-general.php?page=warp-cache3.2534.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲5514.39 ▲0.031.77 ▼0.0243.47 ▼1.10
Dashboard /wp-admin2,198 ▲245.63 ▼0.0387.87 ▼8.7341.74 ▼6.46
Posts /wp-admin/edit.php2,112 ▲122.06 ▲0.0637.44 ▼1.1433.96 ▼1.08
Add New Post /wp-admin/post-new.php1,537 ▲1123.38 ▲5.74683.64 ▼37.8962.39 ▲9.51
Media Library /wp-admin/upload.php1,409 ▲94.23 ▼0.0099.97 ▼27.0843.11 ▼11.86
Warp Cache /wp-admin/options-general.php?page=warp-cache8422.0521.9742.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

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
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP12148551263
CSS2151085
JavaScript2154974

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 code0.05
Average class complexity1.57
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.16
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/screenshot-1.png42.13KB15.64KB▼ 62.89%