94% disable-wp-rocket-cache-members

Code Review | WP Rocket Disable Cache for Members

WordPress plugin WP Rocket Disable Cache for Members scored 94% from 54 tests.

About plugin

  • Plugin page: disable-wp-rocket...
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-4.7.3
  • WordPress version: 5.9.2
  • First release: May 4, 2017
  • Latest release: Aug 4, 2017
  • Number of updates: 5
  • Update frequency: every 18.4 days
  • Top authors: pcfreak30 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 717 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.02MB] [CPU: ▼303.23ms] Passed 4 tests

Server-side resources used by WP Rocket Disable Cache for Members
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0153.60 ▲1.18
Dashboard /wp-admin3.41 ▲0.0033.51 ▼0.16
Posts /wp-admin/edit.php3.64 ▲0.0037.37 ▲0.56
Add New Post /wp-admin/post-new.php6.88 ▼0.0998.33 ▼1,211.70
Media Library /wp-admin/upload.php3.29 ▲0.0023.17 ▼1.61

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Rocket Disable Cache for Members
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲2916.21 ▲0.605.80 ▼0.492.24 ▼0.38
Dashboard /wp-admin2,885 ▲246.04 ▼0.14117.86 ▼16.37150.90 ▼7.76
Posts /wp-admin/edit.php2,688 ▼63.24 ▼0.0061.93 ▼3.06139.05 ▲0.42
Add New Post /wp-admin/post-new.php1,668 ▼4318.13 ▼3.19384.25 ▼62.11155.35 ▼0.41
Media Library /wp-admin/upload.php1,698 ▼05.51 ▼0.04136.95 ▼4.12185.85 ▲6.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disable-wp-rocket-cache-members/disable-wp-rocket-cache-members.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === disable-wp-rocket-cache-members === )
You can look at the official readme.txt

disable-wp-rocket-cache-members/disable-wp-rocket-cache-members.php 92% from 13 tests

The primary PHP file in "WP Rocket Disable Cache for Members" version 0.1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • 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 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin9 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13117
Markdown1002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code1.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected