78% rocketdeliver

Code Review | RocketDeliver - Delivering your WordPress page faster

WordPress plugin RocketDeliver - Delivering your WordPress page faster scored78%from 54 tests.

About plugin

  • Plugin page: rocketdeliver
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.2.4
  • WordPress version: 6.3.1
  • First release: Dec 5, 2019
  • Latest release: Dec 5, 2019
  • Number of updates: 6
  • Update frequency: every 46.0 days
  • Top authors: lmythreya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /522 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.12MB] [CPU: ▼4.18ms] Passed 4 tests

This is a short check of server-side resources used by RocketDeliver - Delivering your WordPress page faster
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1236.76 ▲1.36
Dashboard /wp-admin3.42 ▲0.1244.58 ▼2.49
Posts /wp-admin/edit.php3.53 ▲0.1846.79 ▼0.84
Add New Post /wp-admin/post-new.php6.00 ▲0.1283.70 ▼14.71
Media Library /wp-admin/upload.php3.34 ▲0.1136.40 ▲1.32

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

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

Browser metrics Passed 4 tests

A check of browser resources used by RocketDeliver - Delivering your WordPress page faster
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,598 ▼1633.57 ▼11.050.88 ▼0.848.60 ▼33.09
Dashboard /wp-admin2,124 ▼531.60 ▼4.0517.83 ▼70.0035.59 ▼11.33
Posts /wp-admin/edit.php2,046 ▼571.38 ▼0.578.34 ▼34.0833.21 ▼5.13
Add New Post /wp-admin/post-new.php1,216 ▼3102.07 ▼21.6833.08 ▼618.285.52 ▼54.85
Media Library /wp-admin/upload.php1,002 ▼3922.02 ▼2.2221.43 ▼80.9425.98 ▼17.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/rocketdeliver/public/partials/rocketdeliver-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rocketdeliver/admin/partials/rocketdeliver-admin-display.php:20

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === RocketDeliver - Delivering your WordPress page faster === )
The official readme.txt might help

rocketdeliver/rocketdeliver.php 92% from 13 tests

The main PHP script in "RocketDeliver - Delivering your WordPress page faster" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 412 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin814 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13260780547
CSS26014261
JavaScript24546

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity12.00
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods46
▷ Static methods24.35%
▷ Public methods3576.09%
▷ Protected methods00.00%
▷ Private methods1123.91%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/logo_19.png1.09KB1.18KB0.00%
admin/images/logo.png32.20KB11.66KB▼ 63.80%