84% wp-super-cache-clear-cache-menu

Code Review | Clear All Cache for WP Super Cache

WordPress plugin Clear All Cache for WP Super Cache scored 84% from 54 tests.

About plugin

  • Plugin page: wp-super-cache-cl...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Apr 4, 2014
  • Latest release: Sep 23, 2023
  • Number of updates: 45
  • Update frequency: every 76.9 days
  • Top authors: apasionados (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

10,000+ active / 262,696 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.89ms] Passed 4 tests

Analyzing server-side resources used by Clear All Cache for WP Super Cache
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.15 ▼8.67
Dashboard /wp-admin3.31 ▲0.0147.77 ▼0.53
Posts /wp-admin/edit.php3.36 ▲0.0148.23 ▼2.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.75 ▼12.01
Media Library /wp-admin/upload.php3.24 ▲0.0134.74 ▲3.46

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Clear All Cache for WP Super Cache
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.48 ▼0.161.73 ▼0.1442.78 ▼4.22
Dashboard /wp-admin2,206 ▲185.91 ▼0.0093.65 ▼12.3238.31 ▼5.41
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0140.57 ▼0.1934.21 ▼0.86
Add New Post /wp-admin/post-new.php1,542 ▼018.23 ▼4.64601.03 ▼65.4456.05 ▼0.97
Media Library /wp-admin/upload.php1,388 ▼34.28 ▲0.0693.84 ▼13.8242.67 ▼2.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-super-cache-clear-cache-menu/wp-super-cache-clear-cache-menu.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
Please take inspiration from this readme.txt

wp-super-cache-clear-cache-menu/wp-super-cache-clear-cache-menu.php Passed 13 tests

The primary PHP file in "Clear All Cache for WP Super Cache" version 2.0 is used by WordPress to initiate all plugin functionality
121 characters long description:
Clear all cached files of the WP Super Cache plugin directly from the admin menu (option only available to super admins).

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
No dangerous file extensions were detected49 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File13327
PHP13922

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions2
▷ Named functions2100.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
There were not PNG files found in your plugin