84% rocket-reader-speed-reader

Code Review | Rocket Reader (Speed-Reader)

WordPress plugin Rocket Reader (Speed-Reader) scored 84% from 54 tests.

About plugin

  • Plugin page: rocket-reader-spe...
  • Plugin version: 1.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.8
  • WordPress version: 5.8.1
  • First release: Jun 10, 2014
  • Latest release: Jul 10, 2021
  • Number of updates: 58
  • Update frequency: every 44.6 days
  • Top authors: cageehv (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active / 5,853 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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼142.57ms] Passed 4 tests

Server-side resources used by Rocket Reader (Speed-Reader)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1636.67 ▲16.78
Dashboard /wp-admin3.11 ▲0.0543.19 ▼5.78
Posts /wp-admin/edit.php3.16 ▲0.0543.16 ▼4.89
Add New Post /wp-admin/post-new.php5.46 ▲0.0389.23 ▼564.60
Media Library /wp-admin/upload.php3.05 ▲0.0538.37 ▲4.98
Rocket Reader /wp-admin/options-general.php?page=rr_settings3.0730.32

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 1 new option
New WordPress options
rr_options

Browser metrics Passed 4 tests

Checking browser requirements for Rocket Reader (Speed-Reader)
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,884 ▲28816.97 ▲1.3920.15 ▲10.1847.56 ▲0.15
Dashboard /wp-admin2,977 ▲435.89 ▼0.02145.27 ▼14.54105.43 ▼4.20
Posts /wp-admin/edit.php2,746 ▲72.73 ▲0.0164.85 ▼3.5988.14 ▲4.11
Add New Post /wp-admin/post-new.php1,877 ▲37719.16 ▲0.66373.88 ▼9.48111.37 ▼5.61
Media Library /wp-admin/upload.php1,814 ▲75.06 ▲0.02156.26 ▼9.20117.13 ▲3.98
Rocket Reader /wp-admin/options-general.php?page=rr_settings1,3362.1659.3873.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 1 option in the database
    • rr_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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/rocket-reader-speed-reader/rvg-rocket-reader.php:38

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 93% 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:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt might help

rocket-reader-speed-reader/rvg-rocket-reader.php 92% from 13 tests

The main PHP script in "Rocket Reader (Speed-Reader)" version 1.6.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("rocket-reader-speed-reader.php" instead of "rvg-rocket-reader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected765 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP25199334
JavaScript255102208
CSS4116121
PO File14459102

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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