84% cache-me-button

Code Review | Swift Performance Cache Me

WordPress plugin Swift Performance Cache Me scored84%from 54 tests.

About plugin

  • Plugin page: cache-me-button
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 9, 2018
  • Latest release: Nov 14, 2023
  • Number of updates: 20
  • Update frequency: every 94.6 days
  • Top authors: wpfixit (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /3,747 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.01MB] [CPU: ▼4.47ms] Passed 4 tests

An overview of server-side resources used by Swift Performance Cache Me
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.84 ▲1.85
Dashboard /wp-admin3.33 ▼0.0248.18 ▼7.14
Posts /wp-admin/edit.php3.38 ▲0.0246.82 ▼0.20
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.85 ▼12.38
Media Library /wp-admin/upload.php3.25 ▲0.0232.25 ▲2.07

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Swift Performance Cache Me: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲7714.26 ▼0.451.61 ▼0.0038.07 ▼2.88
Dashboard /wp-admin2,203 ▲225.63 ▼0.0890.51 ▼12.9738.95 ▼0.31
Posts /wp-admin/edit.php2,108 ▲81.97 ▲0.0039.70 ▲4.0637.35 ▲4.98
Add New Post /wp-admin/post-new.php1,534 ▼123.23 ▼1.92678.78 ▲0.3352.43 ▼20.39
Media Library /wp-admin/upload.php1,408 ▲84.17 ▲0.05100.15 ▲6.1046.13 ▲5.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cache-me-button/cache-me-button.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: swift speed, swift lite, swift performance

cache-me-button/cache-me-button.php 85% from 13 tests

This is the main PHP file of "Swift Performance Cache Me" version 2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist
  • Description: Keep the plugin description shorter than 140 characters (currently 187 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin68 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP112768

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods4100.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected