10% cc-cache

Code Review | CC-Cache

WordPress plugin CC-Cache scored10%from 54 tests.

About plugin

  • Plugin page: cc-cache
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-4.6.1
  • WordPress version: 6.3.1
  • First release: Apr 18, 2016
  • Latest release: Oct 3, 2016
  • Number of updates: 6
  • Update frequency: every 28.3 days
  • Top authors: ClearcodeHQ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,433 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-admin/includes/file.php+2197
    fopen(wp-content/cache/temp-write-test-65233bbaf36625-49587193): failed to open stream: No such file or directory

Server metrics [RAM: ▼0.47MB] [CPU: ▼14.56ms] Passed 4 tests

A check of server-side resources used by CC-Cache
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2247.38 ▲6.08
Dashboard /wp-admin3.52 ▲0.2147.53 ▼4.27
Posts /wp-admin/edit.php3.63 ▲0.2849.21 ▲0.68
Add New Post /wp-admin/post-new.php3.37 ▼2.5137.95 ▼59.36
Media Library /wp-admin/upload.php3.44 ▲0.2137.91 ▲4.70
Cache /wp-admin/options-general.php?page=cache3.3227.30

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options
Clearcode\Cache
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by CC-Cache
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.24 ▼1.021.66 ▼0.2039.10 ▼4.16
Dashboard /wp-admin2,228 ▲404.84 ▼1.01108.83 ▼3.3341.19 ▼3.80
Posts /wp-admin/edit.php2,111 ▲222.04 ▲0.0339.82 ▲1.6135.55 ▲0.35
Add New Post /wp-admin/post-new.php1,526 ▲12918.35 ▲0.44626.01 ▲18.1353.83 ▲7.96
Media Library /wp-admin/upload.php1,410 ▲224.28 ▲0.07103.38 ▼16.8042.97 ▼7.42
Cache /wp-admin/options-general.php?page=cache8812.1726.2727.40

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Warning in wp-admin/includes/file.php+2197
    fopen(wp-content/cache/temp-write-test-65233bc7174536-89836929): failed to open stream: No such file or directory
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=cache
    • > Warning in wp-admin/includes/file.php+2197
    fopen(wp-content/cache/temp-write-test-65233bc0530192-54369027): failed to open stream: No such file or directory

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (**WordPress Cache Settings** - Visit the 'Settings > Cache' page, select your preferred options and save them.), #2 (**Post Cache Settings** - You can disable the cache function for individual posts and pages by marking the Disable checkbox in Edit Post/Edit Page.)
Please take inspiration from this readme.txt

cc-cache/plugin.php 92% from 13 tests

The main PHP script in "CC-Cache" version 1.3.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cc-cache.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,170 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP222634281,114
PO File1213049
CSS1107

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity20.00
▷ Minimum class complexity1.00
▷ Maximum class complexity77.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes12
▷ Abstract classes18.33%
▷ Concrete classes1191.67%
▷ Final classes00.00%
Methods87
▷ Static methods1314.94%
▷ Public methods5259.77%
▷ Protected methods3337.93%
▷ Private methods22.30%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.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.16MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png73.50KB22.32KB▼ 69.63%
screenshot-1.png89.35KB29.34KB▼ 67.16%