94% multisite-wp-rocket

Code Review | Multisite Support for WP Rocket

WordPress plugin Multisite Support for WP Rocket scored 94% from 54 tests.

About plugin

  • Plugin page: multisite-wp-rocket
  • Plugin version: 0.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.0-5.3.2
  • WordPress version: 5.9.2
  • First release: Apr 9, 2017
  • Latest release: Feb 14, 2020
  • Number of updates: 17
  • Update frequency: every 61.2 days
  • Top authors: pcfreak30 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active / 1,953 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Multisite Support for WP Rocket
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0158.70 ▲5.41
Dashboard /wp-admin3.41 ▲0.0033.25 ▼0.04
Posts /wp-admin/edit.php3.65 ▲0.0037.49 ▼0.45
Add New Post /wp-admin/post-new.php6.88 ▼0.0994.61 ▼1,178.91
Media Library /wp-admin/upload.php3.30 ▲0.0024.77 ▼1.50

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Multisite Support for WP Rocket
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲2915.98 ▲0.336.41 ▲0.692.24 ▼0.20
Dashboard /wp-admin2,895 ▲346.13 ▼0.10116.02 ▼18.95156.92 ▼6.98
Posts /wp-admin/edit.php2,694 ▲33.24 ▲0.0165.72 ▲3.59146.25 ▲0.89
Add New Post /wp-admin/post-new.php1,760 ▲9522.40 ▲1.95405.61 ▼17.94155.15 ▼3.70
Media Library /wp-admin/upload.php1,701 ▼05.49 ▲0.00133.29 ▼14.33186.11 ▼2.44

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
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 short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix 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/multisite-wp-rocket/multisite-wp-rocket.php:130

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === multisite-wp-rocket === )
The official readme.txt is a good inspiration

multisite-wp-rocket/multisite-wp-rocket.php Passed 13 tests

The main file in "Multisite Support for WP Rocket" v. 0.1.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
53 characters long description:
Plugin to enable WP-Rocket to be managed in multisite

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 plugin93 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1222391
Markdown1002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions9
▷ Named functions9100.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
There are no PNG files in this plugin