77% super-static-cache

Code Review | Super Static Cache

WordPress plugin Super Static Cache scored77%from 54 tests.

About plugin

  • Plugin page: super-static-cache
  • Plugin version: 3.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Aug 19, 2014
  • Latest release: Dec 30, 2017
  • Number of updates: 111
  • Update frequency: every 11.1 days
  • Top authors: hitoy (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

400+ active /23,220 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼9.57ms] Passed 4 tests

This is a short check of server-side resources used by Super Static Cache
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1035.96 ▼4.77
Dashboard /wp-admin3.44 ▲0.1345.46 ▼1.52
Posts /wp-admin/edit.php3.55 ▲0.2044.71 ▼8.36
Add New Post /wp-admin/post-new.php6.02 ▲0.1379.58 ▼23.64
Media Library /wp-admin/upload.php3.36 ▲0.1339.01 ▲3.37
Super Static Cache /wp-admin/options-general.php?page=Super-Static-Cache3.3933.02

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

A short overview of filesystem and database impact
Please try to fix the following items
  • Illegal file modification detected: 2 files (0.14KB) outside of "wp-content/plugins/super-static-cache/" and "wp-content/uploads/"
    • (new file) super-static-cache/rewrite_ok.html.gz
    • (new file) super-static-cache/rewrite_ok.txt
Filesystem: 10 new files
Database: no new tables, 12 new options
New WordPress options
super_static_cache_nocachesinglepage
theysaidso_admin_options
update_cache_action
db_upgraded
super_static_cache_excet
super_static_cache_strict
super_static_cache_mode
widget_recent-posts
widget_recent-comments
can_compress_scripts
...

Browser metrics Passed 4 tests

Checking browser requirements for Super Static Cache
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.29 ▼1.291.68 ▼0.1541.49 ▼2.04
Dashboard /wp-admin2,213 ▲255.86 ▼0.0097.98 ▼22.7635.88 ▼10.88
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0238.85 ▼1.2537.61 ▼7.71
Add New Post /wp-admin/post-new.php1,536 ▲323.14 ▲0.06672.21 ▲8.1555.04 ▲1.60
Media Library /wp-admin/upload.php1,389 ▲14.20 ▲0.01112.49 ▼2.6345.23 ▼4.84
Super Static Cache /wp-admin/options-general.php?page=Super-Static-Cache1,0072.1926.1630.06

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=Super-Static-Cache
    • > Warning in wp-content/plugins/super-static-cache/super-static-cache-admin.php+50
    fopen(http://wp.com/rewrite_ok.txt): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

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
The following issues need your attention
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-static-cache/super-static-cache-admin.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/super-static-cache/options-advanced.php:3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/super-static-cache/super-static-cache.php on line 230
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/super-static-cache/options.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/super-static-cache/super-static-cache.php:235
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/super-static-cache/options-general.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Admin Panel) image not found
The official readme.txt might help

super-static-cache/super-static-cache.php 85% from 13 tests

The main PHP script in "Super Static Cache" version 3.3.5 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 191 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
Good job! No executable or dangerous file extensions detected985 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP586157788
PO File170126197

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity62.00
▷ Minimum class complexity62.00
▷ Maximum class complexity62.00
Average method complexity6.55
▷ Minimum method complexity2.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
2 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png67.55KB34.53KB▼ 48.88%
screenshot-2.png20.41KB10.38KB▼ 49.13%