78% rabbit-loader

Code Review | RabbitLoader

WordPress plugin RabbitLoader scored78%from 54 tests.

About plugin

  • Plugin page: rabbit-loader
  • Plugin version: 2.19.11
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Feb 28, 2021
  • Latest release: Nov 15, 2023
  • Number of updates: 113
  • Update frequency: every 8.9 days
  • Top authors: sanrl (100%)

Code review

54 tests

User reviews

44 reviews

Install metrics

4,000+ active /130,423 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼10.48ms] Passed 4 tests

An overview of server-side resources used by RabbitLoader
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0738.14 ▲0.67
Dashboard /wp-admin3.38 ▲0.0346.07 ▼14.21
Posts /wp-admin/edit.php3.55 ▲0.1941.30 ▼6.48
Add New Post /wp-admin/post-new.php6.03 ▲0.1472.35 ▼21.18
Media Library /wp-admin/upload.php3.38 ▲0.1531.87 ▼0.06

Server storage [IO: ▲1.10MB] [DB: ▲0.07MB] 67% from 3 tests

A short overview of filesystem and database impact
Just a few items left to fix
  • The plugin illegally modified 3 files (5.87KB) outside of "wp-content/plugins/rabbit-loader/" and "wp-content/uploads/"
    • (new file) wp-content/rabbitloader/rl_config.log
    • (modified) wp-config.php
    • (new file) wp-content/advanced-cache.php
Filesystem: 55 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
rabbit_loader_wp_options

Browser metrics Passed 4 tests

Checking browser requirements for RabbitLoader
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲18913.51 ▼0.818.83 ▲7.1339.96 ▼3.76
Dashboard /wp-admin2,243 ▲655.58 ▼0.1190.09 ▼25.3879.76 ▲34.32
Posts /wp-admin/edit.php2,153 ▲502.01 ▼0.0137.20 ▼0.4733.93 ▲2.24
Add New Post /wp-admin/post-new.php1,573 ▲4723.19 ▲0.04688.96 ▲11.6837.73 ▼18.11
Media Library /wp-admin/upload.php1,447 ▲444.20 ▲0.05106.63 ▲3.2575.33 ▲29.60

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 fix the following items
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/rabbit-loader/advanced-cache.php
    • > /wp-content/plugins/rabbit-loader/wp-cli.php
    • > /wp-content/plugins/rabbit-loader/rabbit-loader.php
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'RabbitLoader_21_Tab_Init' not found in wp-content/plugins/rabbit-loader/inc/tab_images.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'RabbitLoader_21_Tab_Init' not found in wp-content/plugins/rabbit-loader/inc/tab_geo.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rabbit-loader/autoload.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'RabbitLoader_21_Tab_Init' not found in wp-content/plugins/rabbit-loader/inc/tab_home.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'RabbitLoader_21_Tab_Init' not found in wp-content/plugins/rabbit-loader/inc/tab_settings.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'RabbitLoader_21_Tab_Init' not found in wp-content/plugins/rabbit-loader/inc/tab_usage.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'RabbitLoader_21_Admin' not found in wp-content/plugins/rabbit-loader/inc/tab_init.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'RabbitLoader_21_Tab_Init' not found in wp-content/plugins/rabbit-loader/inc/tab_urls.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'RabbitLoader_21_Tab_Init' not found in wp-content/plugins/rabbit-loader/inc/tab_css.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: lazy loading, cache, cdn, caching, speed optimization

rabbit-loader/rabbit-loader.php 92% from 13 tests

The main file in "RabbitLoader" v. 2.19.11 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 287 characters long)

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 detected5,808 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PHP356502884,754
CSS413243937
SVG20296
JavaScript32021

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.47
Average class complexity29.07
▷ Minimum class complexity1.00
▷ Maximum class complexity138.00
Average method complexity4.37
▷ Minimum method complexity1.00
▷ Maximum method complexity76.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes29
▷ Abstract classes00.00%
▷ Concrete classes29100.00%
▷ Final classes517.24%
Methods243
▷ Static methods16668.31%
▷ Public methods16969.55%
▷ Protected methods114.53%
▷ Private methods6325.93%
Functions31
▷ Named functions26.45%
▷ Anonymous functions2993.55%
Constants34
▷ Global constants1647.06%
▷ Class constants1852.94%
▷ Public constants1794.44%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/checked.png15.64KB5.94KB▼ 62.02%
assets/delete.png12.11KB4.85KB▼ 59.95%
images/icon_rabbit.png14.58KB8.62KB▼ 40.90%
assets/quick-tips.png14.85KB5.99KB▼ 59.68%
assets/checked-2.png6.95KB3.00KB▼ 56.85%