90% cache-cleaner

Code Review | Cache Cleaner - Scheduled

WordPress plugin Cache Cleaner - Scheduled scored90%from 54 tests.

About plugin

  • Plugin page: cache-cleaner
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Jun 22, 2018
  • Latest release: Oct 12, 2020
  • Number of updates: 124
  • Update frequency: every 6.8 days
  • Top authors: bestseogr (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

700+ active /9,586 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼9.39ms] Passed 4 tests

A check of server-side resources used by Cache Cleaner - Scheduled
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0636.31 ▼2.26
Dashboard /wp-admin3.38 ▲0.0343.46 ▼15.83
Posts /wp-admin/edit.php3.43 ▲0.0745.25 ▲0.11
Add New Post /wp-admin/post-new.php5.96 ▲0.0779.82 ▼19.57
Media Library /wp-admin/upload.php3.30 ▲0.0736.85 ▲2.85

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 17 new options
New WordPress options
widget_theysaidso_widget
wplocalseo_cleaner_rocket
widget_recent-comments
wplocalseo_cleaner_time
wplocalseo_cleaner_notify
wplocalseo_cleaner_time_old
can_compress_scripts
wplocalseo_cleaner_cometcache
wplocalseo_cleaner_autoptimize
wplocalseo_cleaner_notificationsemail
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Cache Cleaner - Scheduled
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.51 ▼0.101.91 ▲0.3141.73 ▲1.45
Dashboard /wp-admin2,213 ▲355.56 ▼0.1482.67 ▼17.4182.89 ▲38.47
Posts /wp-admin/edit.php2,112 ▲121.97 ▼0.0434.87 ▼3.3333.70 ▲0.30
Add New Post /wp-admin/post-new.php1,693 ▲16722.37 ▼0.83723.92 ▲72.4849.18 ▼14.56
Media Library /wp-admin/upload.php1,415 ▲154.20 ▲0.0397.90 ▲0.5978.88 ▲35.38

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 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
7 plugin tags: cache cleaner, clean cache, delete cache, purge cache, scheduled cache clean...

cache-cleaner/cache-cleaner.php Passed 13 tests

The principal PHP file in "Cache Cleaner - Scheduled" v. 1.0.7 is loaded by WordPress automatically on each request
56 characters long description:
Scheduled Cache Clean UP. Keep your Cache Folders Fresh.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin575 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP210339328
CSS1278247

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/wplocalseo-cleaner.png16.09KB1.11KB▼ 93.09%
images/icon-help.png0.68KB0.70KB0.00%