84% automatic-cache-flusher-for-w3-total-cache

Code Review | Automatic Cache Flusher for W3 Total Cache

WordPress plugin Automatic Cache Flusher for W3 Total Cache scored84%from 54 tests.

About plugin

  • Plugin page: automatic-cache-f...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Mar 29, 2023
  • Latest release: Oct 9, 2023
  • Number of updates: 10
  • Update frequency: every 19.5 days
  • Top authors: stachredeker (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /687 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.87ms] Passed 4 tests

A check of server-side resources used by Automatic Cache Flusher for W3 Total Cache
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.48 ▲0.77
Dashboard /wp-admin3.31 ▲0.0150.30 ▼5.33
Posts /wp-admin/edit.php3.36 ▲0.0047.76 ▼4.97
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.06 ▼13.96
Media Library /wp-admin/upload.php3.23 ▲0.0039.33 ▲1.63

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Automatic Cache Flusher for W3 Total Cache
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.181.66 ▼0.5043.62 ▲0.31
Dashboard /wp-admin2,203 ▲155.80 ▼0.0199.47 ▼9.7940.99 ▼2.45
Posts /wp-admin/edit.php2,086 ▼32.00 ▼0.0236.59 ▲0.8733.08 ▼3.60
Add New Post /wp-admin/post-new.php1,533 ▲1223.00 ▼0.10662.50 ▼22.5251.86 ▼6.24
Media Library /wp-admin/upload.php1,388 ▲64.13 ▲0.01103.72 ▼0.1045.56 ▲2.84

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/automatic-cache-flusher-for-w3-total-cache/cacheFlusher.php:21

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 96% from 29 tests

readme.txt Passed 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
6 plugin tags: cache flusher, cache flush on update, w3 total cache, flusher, cache...

automatic-cache-flusher-for-w3-total-cache/cacheFlusher.php 92% from 13 tests

The entry point to "Automatic Cache Flusher for W3 Total Cache" version 1.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("automatic-cache-flusher-for-w3-total-cache.php" instead of "cacheFlusher.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP142210

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin