90% cache-buddy

Code Review | Cache Buddy

WordPress plugin Cache Buddy scored90%from 54 tests.

About plugin

  • Plugin page: cache-buddy
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.2
  • WordPress version: 6.3.1
  • First release: Mar 25, 2015
  • Latest release: Mar 25, 2015
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: markjaquith (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /3,337 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.86ms] Passed 4 tests

Analyzing server-side resources used by Cache Buddy
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0740.39 ▼0.51
Dashboard /wp-admin3.37 ▲0.0243.20 ▼13.79
Posts /wp-admin/edit.php3.49 ▲0.1345.11 ▼3.83
Add New Post /wp-admin/post-new.php5.95 ▲0.0689.08 ▼5.31
Media Library /wp-admin/upload.php3.30 ▲0.0633.07 ▲1.85

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Cache Buddy
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.79 ▼0.591.84 ▼0.0644.34 ▼6.97
Dashboard /wp-admin2,206 ▲184.80 ▼1.10107.12 ▼0.3640.05 ▼1.77
Posts /wp-admin/edit.php2,092 ▼02.04 ▼0.0143.93 ▲2.9734.02 ▼4.44
Add New Post /wp-admin/post-new.php1,514 ▼617.50 ▼5.74657.40 ▲62.7257.13 ▼6.27
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.0494.20 ▼5.2741.25 ▼2.24

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: cache, performance, caching, speed, faster

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

Analyzing the main PHP file in "Cache Buddy" version 0.2.0
127 characters long description:
Minimizes the situations in which logged-in users appear logged-in to WordPress, which increases the cacheability of your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin316 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP459164309
Markdown3306
JavaScript1011

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity12.33
▷ Minimum class complexity5.00
▷ Maximum class complexity24.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods37
▷ Static methods410.81%
▷ Public methods2772.97%
▷ Protected methods513.51%
▷ Private methods513.51%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.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 files were detected