10% wp-static-cache

Code Review | WP Static Cache

WordPress plugin WP Static Cache scored10%from 54 tests.

About plugin

  • Plugin page: wp-static-cache
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 2, 2016
  • Latest release: Nov 2, 2016
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: blode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,051 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/wp-static-cache/cache-mgr.php+82
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.88MB] [CPU: ▼50.37ms] Passed 4 tests

Analyzing server-side resources used by WP Static Cache
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.12 ▼1.345.71 ▼35.50
Dashboard /wp-admin2.12 ▼1.185.50 ▼43.07
Posts /wp-admin/edit.php2.13 ▼1.226.32 ▼42.07
Add New Post /wp-admin/post-new.php2.12 ▼3.765.96 ▼80.82
Media Library /wp-admin/upload.php2.13 ▼1.106.58 ▼31.13
Cahce Manager /wp-admin/admin.php?page=cachemange2.126.23
Set up filter /wp-admin/admin.php?page=setupfilter2.126.35

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

How much does this plugin use your filesystem and database?
Just a few items left to fix
  • You have illegally modified 10 files (212.64KB) outside of "wp-content/plugins/wp-static-cache/" and "wp-content/uploads/"
    • (new file) wp-content/static-cache-files/d4/4c/d44c34cfed9d779feaaeb753fb76c2f0.html
    • (new file) wp-content/static-cache-files/2e/fc/2efc90e8b9edaf744ed8e2251bb8fa4e.html
    • (new file) wp-content/advanced-cache.php
    • (new file) wp-content/static-cache-files/5c/86/5c86515300035c114610c54975e8160d.html
    • (new file) wp-content/static-cache-files/32/56/32564733bbac22e16cad5b679d951951.html
    • (new file) wp-content/static-cache-files/c2/c8/c2c87cdbdb995cdf332032017b1c2d1f.html
    • (new file) wp-content/static-cache-files/2f/2e/2f2e29192f02977a5d140198afca0a12.html
    • (new file) wp-content/static-cache-files/66/e1/66e1314aef25fedea2b40e87e3a1b54c.html
    • (new file) wp-content/static-cache-files/a0/44/a044fbbdb1fc40cd0055bc187e6d5efd.html
    • (modified) wp-config.php
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP Static Cache
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲5613.64 ▼0.741.71 ▼0.3143.72 ▼1.56
Dashboard /wp-admin2,236 ▲455.89 ▲1.0396.40 ▼25.8436.97 ▼11.68
Posts /wp-admin/edit.php2,113 ▲242.01 ▼0.0334.66 ▼1.8934.40 ▲1.20
Add New Post /wp-admin/post-new.php1,546 ▲3223.39 ▲5.91679.28 ▼4.6256.56 ▼0.46
Media Library /wp-admin/upload.php1,415 ▲274.29 ▲0.0799.40 ▼5.4543.36 ▼3.04
Cahce Manager /wp-admin/admin.php?page=cachemange8582.0623.5528.55
Set up filter /wp-admin/admin.php?page=setupfilter8042.0323.8655.40

Uninstaller [IO: ▲0.21MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wp-static-cache/cache-mgr.php+82
    Array and string offset access syntax with curly braces is deprecated
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=setupfilter
    • > Deprecated in wp-content/plugins/wp-static-cache/cache-mgr.php+82
    Array and string offset access syntax with curly braces is deprecated

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: caching, performance, static cache, cache

wp-static-cache/cache-mgr.php 92% from 13 tests

"WP Static Cache" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-static-cache.php" instead of "cache-mgr.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin503 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP95131503

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants15100.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
There are no PNG files in this plugin