80% wonder-cache

Code Review | Wonder Cache

WordPress plugin Wonder Cache scored80%from 54 tests.

About plugin

  • Plugin page: wonder-cache
  • Plugin version: 0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Sep 24, 2019
  • Latest release: Oct 25, 2023
  • Number of updates: 18
  • Update frequency: every 82.9 days
  • Top authors: m_uysl (55.56%)handyplugins (50%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,736 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.32ms] Passed 4 tests

A check of server-side resources used by Wonder Cache
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0734.56 ▼5.01
Dashboard /wp-admin3.36 ▲0.0243.10 ▼13.60
Posts /wp-admin/edit.php3.42 ▲0.0645.15 ▼4.09
Add New Post /wp-admin/post-new.php6.00 ▲0.1193.64 ▲1.42
Media Library /wp-admin/upload.php3.34 ▲0.1136.21 ▲4.61

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

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • The plugin illegally modified 2 files (4.47KB) outside of "wp-content/plugins/wonder-cache/" and "wp-content/uploads/"
    • (modified) wp-config.php
    • (new file) wp-content/advanced-cache.php
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Wonder Cache
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8214.35 ▼0.092.00 ▲0.4537.61 ▼0.45
Dashboard /wp-admin2,207 ▲275.61 ▼0.0790.22 ▲6.3241.26 ▼1.14
Posts /wp-admin/edit.php2,112 ▲122.01 ▲0.0339.03 ▲1.1638.12 ▼2.88
Add New Post /wp-admin/post-new.php1,529 ▲323.01 ▼0.46660.31 ▼5.4657.23 ▼5.09
Media Library /wp-admin/upload.php1,409 ▲94.19 ▲0.0192.79 ▼5.1642.82 ▼0.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/wonder-cache/includes/utils.php+154
    opendir(wp-content/cache/wonder-cache/): failed to open dir: No such file or directory
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP 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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: wonder, load, speed, performance, cache...

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

The primary PHP file in "Wonder Cache" version 0.5 is used by WordPress to initiate all plugin functionality
106 characters long description:
A simple yet powerful caching plugin. It powers and abilities include: superhuman strength and durability.

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
Everything looks great! No dangerous files found in this plugin684 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5206220684

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity53.00
▷ Minimum class complexity53.00
▷ Maximum class complexity53.00
Average method complexity4.77
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions2095.24%
▷ Anonymous functions14.76%
Constants3
▷ Global constants3100.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 were not PNG files found in your plugin