10% cynderhost

Code Review | CynderHost Cache

WordPress plugin CynderHost Cache scored10%from 54 tests.

About plugin

  • Plugin page: cynderhost
  • Plugin version: 2.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 5, 2020
  • Latest release: Nov 15, 2023
  • Number of updates: 42
  • Update frequency: every 28.5 days
  • Top authors: cynderhost (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,356 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/cynderhost/cynderhost.php+44
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼0.05MB] [CPU: ▼10.63ms] Passed 4 tests

An overview of server-side resources used by CynderHost Cache
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1238.65 ▼0.41
Dashboard /wp-admin3.32 ▲0.0136.57 ▼10.99
Posts /wp-admin/edit.php3.39 ▲0.0336.72 ▼11.44
Add New Post /wp-admin/post-new.php5.56 ▼0.3372.67 ▼17.43
Media Library /wp-admin/upload.php3.32 ▲0.0930.74 ▼2.65

Server storage [IO: ▲0.05MB] [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: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for CynderHost Cache
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲6914.23 ▼0.171.73 ▲0.0943.56 ▼2.69
Dashboard /wp-admin2,196 ▲195.52 ▼0.0085.85 ▼17.3074.91 ▲32.69
Posts /wp-admin/edit.php2,110 ▲131.97 ▼0.0537.17 ▼0.9231.74 ▼2.80
Add New Post /wp-admin/post-new.php1,538 ▲1223.21 ▲0.21677.08 ▼45.0446.08 ▼14.31
Media Library /wp-admin/upload.php1,416 ▲164.18 ▼0.0197.68 ▼8.9171.04 ▲24.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/cynderhost/cynderhost.php+44
    Trying to access array offset on value of type bool
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === cynderhost === )
Please take inspiration from this readme.txt

cynderhost/cynderhost.php Passed 13 tests

The primary PHP file in "CynderHost Cache" version 2.0.5 is used by WordPress to initiate all plugin functionality
102 characters long description:
Provides an easy interface to clear the CynderHost CDN cache, both automatically and programmatically.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin515 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP285165510
CSS1205

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions27
▷ Named functions2592.59%
▷ Anonymous functions27.41%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/menu_icon.png5.63KB3.31KB▼ 41.08%