77% leadrebel

Code Review | Leadrebel

WordPress plugin Leadrebel scored77%from 54 tests.

About plugin

  • Plugin page: leadrebel
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 8, 2022
  • Latest release: Aug 3, 2023
  • Number of updates: 6
  • Update frequency: every 45.5 days
  • Top authors: leadrebel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /292 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.05ms] Passed 4 tests

A check of server-side resources used by Leadrebel
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.36 ▼3.80
Dashboard /wp-admin3.33 ▲0.0351.85 ▲0.80
Posts /wp-admin/edit.php3.44 ▲0.0952.15 ▲2.59
Add New Post /wp-admin/post-new.php5.91 ▲0.0385.23 ▼14.61
Media Library /wp-admin/upload.php3.25 ▲0.0339.96 ▲1.42
LeadRebel /wp-admin/options-general.php?page=Leadrebel_PluginSettings2.055.16

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
Leadrebel_Plugin__version
Leadrebel_Plugin__installed
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Leadrebel: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲713.31 ▼1.284.74 ▲2.8246.29 ▲8.81
Dashboard /wp-admin2,199 ▲195.63 ▼0.0690.51 ▲1.0541.30 ▼1.91
Posts /wp-admin/edit.php2,104 ▲72.00 ▼0.0533.46 ▼2.5234.95 ▼0.69
Add New Post /wp-admin/post-new.php1,548 ▲2223.11 ▲5.51674.41 ▼33.9659.14 ▼4.05
Media Library /wp-admin/upload.php1,404 ▲14.32 ▲0.0699.80 ▼5.8944.54 ▼6.18
LeadRebel /wp-admin/options-general.php?page=Leadrebel_PluginSettings9492.0825.7259.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • Leadrebel_Plugin__installed
    • Leadrebel_Plugin__version

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=Leadrebel_PluginSettings
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the leadrebel-script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=Leadrebel_PluginSettings
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the leadrebel-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

SRP 50% 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
  • 3× 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/leadrebel/Leadrebel_LifeCycle.php:175
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/leadrebel/Leadrebel_LifeCycle.php:175
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/leadrebel/leadrebel.php:77

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

readme.txt 69% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: No tags were detected
  • Contributors: Plugin contributors field is missing
  • Contributors: No tags were detected
  • Donate link: Please fix this invalid URI: ""
  • Requires at least: Version not formatted correctly
You can look at the official readme.txt

leadrebel/leadrebel.php Passed 13 tests

This is the main PHP file of "Leadrebel" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
25 characters long description:
https://app.leadrebel.io/

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,018 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP6169395676
CSS1350191
JavaScript12116151

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity11.25
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity1.69
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods59
▷ Static methods00.00%
▷ Public methods3559.32%
▷ Protected methods2440.68%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/Logo-1200x282.png14.88KB7.30KB▼ 50.92%
img/logo476x106.png8.49KB4.56KB▼ 46.31%
img/logo325x72.png5.65KB3.39KB▼ 39.97%