84% dessky-cache

Code Review | Dessky Cache

WordPress plugin Dessky Cache scored84%from 54 tests.

About plugin

  • Plugin page: dessky-cache
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Mar 25, 2017
  • Latest release: Oct 3, 2023
  • Number of updates: 7
  • Update frequency: every 340.4 days
  • Top authors: dessky (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /1,545 total downloads


Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.23ms] Passed 4 tests

This is a short check of server-side resources used by Dessky Cache
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.76 ▼0.86
Dashboard /wp-admin3.35 ▲0.0550.17 ▲4.18
Posts /wp-admin/edit.php3.39 ▲0.0445.54 ▼3.41
Add New Post /wp-admin/post-new.php5.92 ▲0.0491.10 ▼18.04
Media Library /wp-admin/upload.php3.26 ▲0.0435.20 ▲1.40
Dessky Cache /wp-admin/options-general.php?page=dessky-cache3.2235.68

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Please fix the following
  • There were 2 files (6.98KB) illegally modified outside of "wp-content/plugins/dessky-cache/" and "wp-content/uploads/"
    • (new file) wp-content/advanced-cache.php
    • (modified) wp-config.php
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Dessky Cache
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.63 ▼0.751.72 ▼0.1641.73 ▼2.91
Dashboard /wp-admin2,226 ▲354.87 ▼1.01102.53 ▲0.6340.41 ▼2.71
Posts /wp-admin/edit.php2,103 ▲112.05 ▲0.0439.96 ▲0.5036.02 ▼1.51
Add New Post /wp-admin/post-new.php1,536 ▲318.19 ▼5.03599.31 ▼25.1965.67 ▲4.05
Media Library /wp-admin/upload.php1,402 ▲144.22 ▼0.1197.93 ▼1.4742.22 ▼0.06
Dessky Cache /wp-admin/options-general.php?page=dessky-cache9572.0227.7431.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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 following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/dessky-cache/util/advanced-cache.php on line 25

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: There are too many tags (14 tag instead of maximum 10)
You can look at the official readme.txt

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

The primary PHP file in "Dessky Cache" version 1.1 is used by WordPress to initiate all plugin functionality
123 characters long description:
Dessky Cache is the ultralight caching plugin suited for websites that are hosted on shared hosting with limited resources.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,457 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity89.50
▷ Minimum class complexity50.00
▷ Maximum class complexity129.00
Average method complexity3.57
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes2100.00%
▷ Static methods6898.55%
▷ Public methods4463.77%
▷ Protected methods00.00%
▷ Private methods2536.23%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants541.67%
▷ Class constants758.33%
▷ Public constants7100.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
No PNG files were detected