89% yasakani-cache

Code Review | YASAKANI Cache

WordPress plugin YASAKANI Cache scored89%from 54 tests.

About plugin

  • Plugin page: yasakani-cache
  • Plugin version: 3.7.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Aug 19, 2016
  • Latest release: Aug 17, 2023
  • Number of updates: 54
  • Update frequency: every 47.3 days
  • Top authors: enomoto celtislab (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

30+ active /7,392 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.48MB] [CPU: ▲0.39ms] Passed 4 tests

This is a short check of server-side resources used by YASAKANI Cache
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.3947.23 ▲4.75
Dashboard /wp-admin3.86 ▲0.5563.22 ▲1.77
Posts /wp-admin/edit.php3.91 ▲0.5554.23 ▲0.92
Add New Post /wp-admin/post-new.php6.38 ▲0.4992.93 ▼5.88
Media Library /wp-admin/upload.php3.72 ▲0.4848.91 ▲8.46
YASAKANI Cache /wp-admin/options-general.php?page=yasakani-cache3.7040.84

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

A short overview of filesystem and database impact
It is recommended to fix the following issues
  • You have illegally modified 5 files (61.19KB) outside of "wp-content/plugins/yasakani-cache/" and "wp-content/uploads/"
    • (modified) wp-config.php
    • (new file) wp-content/yasakani-cache/.htaccess
    • (new file) wp-content/advanced-cache.php
    • (new file) wp-content/yasakani-cache/yasakani_cache.db
    • (new file) wp-content/yasakani-cache-exload.php
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for YASAKANI Cache
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.40 ▼0.151.81 ▼0.3243.05 ▼4.15
Dashboard /wp-admin2,202 ▲225.67 ▲0.0293.07 ▲2.5639.79 ▼3.07
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0238.27 ▲0.2634.05 ▼3.13
Add New Post /wp-admin/post-new.php6,241 ▲4,71325.87 ▲2.62952.45 ▲271.0370.16 ▲13.94
Media Library /wp-admin/upload.php1,404 ▲44.11 ▼0.07101.69 ▼6.2644.02 ▼5.84
YASAKANI Cache /wp-admin/options-general.php?page=yasakani-cache1,3512.0937.9038.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: bot block, security, cache, sqlite, statistics...

yasakani-cache/yasakani-cache.php 92% from 13 tests

The primary PHP file in "YASAKANI Cache" version 3.7.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin5,627 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP114257135,243
PO File1134137384

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity107.92
▷ Minimum class complexity27.00
▷ Maximum class complexity339.00
Average method complexity8.74
▷ Minimum method complexity1.00
▷ Maximum method complexity74.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods157
▷ Static methods10365.61%
▷ Public methods15699.36%
▷ Protected methods00.00%
▷ Private methods10.64%
Functions27
▷ Named functions518.52%
▷ Anonymous functions2281.48%
Constants9
▷ Global constants222.22%
▷ Class constants777.78%
▷ 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 images were found in this plugin