89% cache-file-management-for-wp-super-cache

Code Review | Cache file management for wp super cache

WordPress plugin Cache file management for wp super cache scored89%from 54 tests.

About plugin

  • Plugin page: cache-file-manage...
  • Plugin version: 1.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 2, 2019
  • Latest release: Feb 2, 2019
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: sockscap64 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /610 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼5.33ms] Passed 4 tests

This is a short check of server-side resources used by Cache file management for wp super cache
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1641.82 ▲0.52
Dashboard /wp-admin3.47 ▲0.1648.87 ▲1.47
Posts /wp-admin/edit.php3.58 ▲0.2244.93 ▼6.69
Add New Post /wp-admin/post-new.php6.05 ▲0.1681.60 ▼15.52
Media Library /wp-admin/upload.php3.39 ▲0.1636.70 ▲0.37

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Cache file management for wp super cache
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.24 ▼1.154.75 ▲3.1344.03 ▲4.42
Dashboard /wp-admin2,203 ▲155.83 ▼0.0795.49 ▼12.4436.44 ▼5.89
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0135.68 ▼6.3934.46 ▼0.57
Add New Post /wp-admin/post-new.php1,534 ▼823.10 ▲5.00695.39 ▲34.7263.91 ▲2.70
Media Library /wp-admin/upload.php1,388 ▲64.30 ▲0.0695.57 ▼1.8543.47 ▲3.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: cache files management, cache files, wp super cache

cache-file-management-for-wp-super-cache/cache-file-management-for-wp-super-cache.php 92% from 13 tests

"Cache file management for wp super cache" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Requires at least: The required version number did not match the one declared in readme.txt ("3.9" instead of "4.0")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin976 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP373213869
CSS100107

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
  • Method cyclomatic complexity should be reduced to less than 100 (currently 114)
Cyclomatic complexity
Average complexity per logical line of code0.75
Average class complexity128.50
▷ Minimum class complexity111.00
▷ Maximum class complexity146.00
Average method complexity10.44
▷ Minimum method complexity1.00
▷ Maximum method complexity114.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods27
▷ Static methods1451.85%
▷ Public methods27100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin