84% extra-wp-rocket

Code Review | Extras for WP Rocket

WordPress plugin Extras for WP Rocket scored84%from 54 tests.

About plugin

  • Plugin page: extra-wp-rocket
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.1.1
  • WordPress version: 6.3.1
  • First release: Mar 23, 2019
  • Latest release: Mar 25, 2019
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: vlijmen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,793 total downloads

Benchmarks

Plugin footprint 83% from 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.07MB] [CPU: ▼1.01ms] Passed 4 tests

An overview of server-side resources used by Extras for WP Rocket
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.25 ▼5.14
Dashboard /wp-admin3.38 ▲0.0760.34 ▲4.77
Posts /wp-admin/edit.php3.43 ▲0.0750.31 ▲0.44
Add New Post /wp-admin/post-new.php5.96 ▲0.0793.50 ▲0.02
Media Library /wp-admin/upload.php3.30 ▲0.0737.40 ▲0.64

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Extras for WP Rocket
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.18 ▼1.252.09 ▲0.0642.03 ▼6.04
Dashboard /wp-admin2,218 ▲275.85 ▲0.9298.57 ▼17.6841.48 ▼6.21
Posts /wp-admin/edit.php2,097 ▲112.00 ▼0.0541.83 ▲3.9036.38 ▼1.49
Add New Post /wp-admin/post-new.php1,549 ▲1623.15 ▼0.23642.80 ▼40.2560.15 ▲5.36
Media Library /wp-admin/upload.php1,400 ▲124.24 ▲0.01100.24 ▼11.2446.45 ▼0.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/extra-wp-rocket/extra-wp-rocket.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: addon, extras, wp rocket, wprocket, wp-rocket

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

"Extras for WP Rocket" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
51 characters long description:
Added extra options to your WP Rocket configuration

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 plugin271 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12211271

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.60
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin