83% speedycache

Code Review | SpeedyCache - Cache, Optimization, Performance

WordPress plugin SpeedyCache - Cache, Optimization, Performance scored83%from 54 tests.

About plugin

  • Plugin page: speedycache
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Feb 1, 2023
  • Latest release: Nov 30, 2023
  • Number of updates: 25
  • Update frequency: every 12.1 days
  • Top authors: softaculous (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

100,000+ active /791,920 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.30MB] [CPU: ▼0.80ms] Passed 4 tests

Server-side resources used by SpeedyCache - Cache, Optimization, Performance
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.4941.60 ▲3.01
Dashboard /wp-admin3.56 ▲0.2148.23 ▼15.29
Posts /wp-admin/edit.php3.67 ▲0.3149.91 ▲2.01
Add New Post /wp-admin/post-new.php6.31 ▲0.42101.48 ▲10.39
Media Library /wp-admin/upload.php3.48 ▲0.2539.64 ▲7.07
Excludes /wp-admin/admin.php?page=speedycache-exclude4.9843.94
Settings /wp-admin/admin.php?page=speedycache4.9845.52
Test PageSpeed /wp-admin/admin.php?page=speedycache-test4.9838.36
Support /wp-admin/admin.php?page=speedycache-support4.9841.02
Database /wp-admin/admin.php?page=speedycache-db4.9842.48
CDN /wp-admin/admin.php?page=speedycache-cdn4.9842.16
Bloat Remover /wp-admin/admin.php?page=speedycache-bloat4.9842.98
Manage Cache /wp-admin/admin.php?page=speedycache-manage-cache4.9840.69
Object /wp-admin/admin.php?page=speedycache-object4.9842.63

Server storage [IO: ▲1.56MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
These are issues you should consider
  • You have illegally modified 2 files (3.49KB) outside of "wp-content/plugins/speedycache/" and "wp-content/uploads/"
    • (modified) .htaccess
    • (new file) wp-content/cache/speedycache/wp.com/.empty
Filesystem: 48 new files
Database: no new tables, 9 new options
New WordPress options
speedycache_options
speedycache_version
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
speedycache_promo_time

Browser metrics Passed 4 tests

Checking browser requirements for SpeedyCache - Cache, Optimization, Performance
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,235 ▲47313.47 ▼0.828.98 ▲7.2735.76 ▼8.48
Dashboard /wp-admin2,524 ▲3445.61 ▼0.0494.13 ▲1.8289.04 ▲46.18
Posts /wp-admin/edit.php2,438 ▲3352.19 ▲0.2239.32 ▼0.6337.67 ▲1.48
Add New Post /wp-admin/post-new.php1,838 ▲31225.05 ▲1.34711.32 ▲56.5063.66 ▲14.12
Media Library /wp-admin/upload.php1,723 ▲3204.26 ▲0.0899.53 ▼3.9273.77 ▲30.13
Excludes /wp-admin/admin.php?page=speedycache-exclude6,4092.0541.76107.99
Settings /wp-admin/admin.php?page=speedycache6,3282.0238.6076.36
Test PageSpeed /wp-admin/admin.php?page=speedycache-test1,5481.8733.2667.97
Support /wp-admin/admin.php?page=speedycache-support6,2441.9941.3252.34
Database /wp-admin/admin.php?page=speedycache-db6,2632.0341.4876.06
CDN /wp-admin/admin.php?page=speedycache-cdn6,2752.1441.5467.90
Bloat Remover /wp-admin/admin.php?page=speedycache-bloat6,2661.9942.8763.95
Manage Cache /wp-admin/admin.php?page=speedycache-manage-cache6,2562.0038.8868.78
Object /wp-admin/admin.php?page=speedycache-object6,2531.9835.2065.32

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • speedycache_promo_time
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 15× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/speedycache/main/toolbar.php
    • > /wp-content/plugins/speedycache/main/ajax.php
    • > /wp-content/plugins/speedycache/main/precache.php
    • > /wp-content/plugins/speedycache/main/settings.php
    • > /wp-content/plugins/speedycache/main/css.php
    • > /wp-content/plugins/speedycache/main/admin.php
    • > /wp-content/plugins/speedycache/main/autocache.php
    • > /wp-content/plugins/speedycache/main/cache.php
    • > /wp-content/plugins/speedycache/functions.php
    • > /wp-content/plugins/speedycache/main/metabox.php

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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:
  • Tags: Too many tags (21 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

speedycache/speedycache.php 92% from 13 tests

Analyzing the main PHP file in "SpeedyCache - Cache, Optimization, Performance" version 1.1.3
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 143 characters long)

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
There were no executable files found in this plugin14,757 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP222,6185719,843
JavaScript46531422,322
CSS3354431,964
SVG200626
HTML1002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.66
Average class complexity90.57
▷ Minimum class complexity1.00
▷ Maximum class complexity384.00
Average method complexity8.60
▷ Minimum method complexity1.00
▷ Maximum method complexity83.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods165
▷ Static methods165100.00%
▷ Public methods165100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions115
▷ Named functions115100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.22MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/cloudflare-browsercache.png47.78KB15.37KB▼ 67.84%
assets/images/loginizer_product.png6.59KB4.31KB▼ 34.61%
assets/images/pagelayer_product.png3.28KB3.06KB▼ 6.73%
assets/images/cloudflare-rocketloader.png33.27KB10.17KB▼ 69.43%
assets/images/logo.png25.61KB9.41KB▼ 63.27%