79% bodi0s-easy-cache

Code Review | bodi0`s Easy cache

WordPress plugin bodi0`s Easy cache scored79%from 54 tests.

About plugin

  • Plugin page: bodi0s-easy-cache
  • Plugin version: 0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Feb 21, 2014
  • Latest release: Jun 3, 2015
  • Number of updates: 41
  • Update frequency: every 11.4 days
  • Top authors: budiony (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

10+ active /3,927 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.70ms] Passed 4 tests

An overview of server-side resources used by bodi0`s Easy cache
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.78 ▼0.37
Dashboard /wp-admin3.31 ▲0.0046.22 ▼0.73
Posts /wp-admin/edit.php3.36 ▲0.0042.66 ▼1.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.32 ▼8.47
Media Library /wp-admin/upload.php3.23 ▲0.0033.94 ▲0.51

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for bodi0`s Easy cache
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.071.80 ▼0.0444.36 ▲4.15
Dashboard /wp-admin2,192 ▲215.56 ▲0.0287.96 ▲1.8040.00 ▼3.97
Posts /wp-admin/edit.php2,100 ▲32.01 ▲0.0233.92 ▼2.2532.60 ▼2.71
Add New Post /wp-admin/post-new.php1,526 ▼2523.21 ▲4.99674.69 ▲19.3269.05 ▲3.18
Media Library /wp-admin/upload.php1,400 ▲34.18 ▲0.02102.63 ▲6.3848.24 ▲2.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall correctly, leaving 18 files (0.38MB) in the plugin directory
    • (new file) languages/bodi0-easy-cache-en_GB.po
    • (new file) bodi0-easy-cache-admin.php
    • (new file) languages/bodi0-easy-cache-bg_BG.mo
    • (new file) languages/bodi0-easy-cache-en_GB.mo
    • (new file) languages/bodi0-easy-cache-bg_BG.po
    • (new file) bodi0-easy-cache.php
    • (new file) bodi0-easy-cache-end.php
    • (new file) bodi0-easy-cache-start.php
    • (new file) languages/bodi0-easy-cache-es_ES.mo
    • (new file) bodi0-easy-cache-settings.php
    • ...
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • 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
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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: There are too many tags (22 tag instead of maximum 10)
  • Screenshots: These screenshots do not have images: #1 (screenshot-1.gif), #2 (screenshot-2.gif), #3 (screenshot-3.gif)
You can take inspiration from this readme.txt

bodi0s-easy-cache/bodi0-easy-cache.php 85% from 13 tests

The principal PHP file in "bodi0`s Easy cache" v. 0.8 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bodi0s-easy-cache.php" instead of "bodi0-easy-cache.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,575 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PO File44125091,502
PHP62013231,073

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin