90% clear-autoptimize-cache-automatically

Code Review | Clear Autoptimize Cache Automatically

WordPress plugin Clear Autoptimize Cache Automatically scored90%from 54 tests.

About plugin

  • Plugin page: clear-autoptimize...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.1
  • WordPress version: 6.3.1
  • First release: Nov 18, 2022
  • Latest release: Sep 19, 2023
  • Number of updates: 7
  • Update frequency: every 43.6 days
  • Top authors: kimvt1991 (57.14%)villatheme (42.86%)thanhtd (28.57%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /3,206 total downloads


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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.12ms] Passed 4 tests

An overview of server-side resources used by Clear Autoptimize Cache Automatically
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0846.45 ▲6.09
Dashboard /wp-admin3.39 ▲0.0443.83 ▼20.81
Posts /wp-admin/edit.php3.44 ▲0.0848.89 ▲2.52
Add New Post /wp-admin/post-new.php5.97 ▲0.0880.44 ▼12.42
Media Library /wp-admin/upload.php3.31 ▲0.0836.20 ▲2.23

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Clear Autoptimize Cache Automatically: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▼0.011.72 ▼0.0144.70 ▼0.30
Dashboard /wp-admin2,195 ▲185.64 ▼0.0187.30 ▼13.8836.41 ▼9.20
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0135.52 ▼0.4734.17 ▼3.23
Add New Post /wp-admin/post-new.php1,536 ▲823.20 ▲0.15630.15 ▲10.4747.63 ▼4.73
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.02101.21 ▲6.4842.35 ▼3.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Add multiple image URLs), #2 (Add single image URL)
The official readme.txt might help

clear-autoptimize-cache-automatically/clear-autoptimize-cache-automatically.php Passed 13 tests

"Clear Autoptimize Cache Automatically" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
73 characters long description:
Automatically clear Autoptimize cache at a specific time of selected days

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin4,333 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code

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.56
Average class complexity45.25
▷ Minimum class complexity6.00
▷ Maximum class complexity108.00
Average method complexity5.21
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods37.14%
▷ Public methods3788.10%
▷ Protected methods24.76%
▷ Private methods37.14%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin