77% ooohboi-steroids-for-elementor

Code Review | OoohBoi Steroids for Elementor

WordPress plugin OoohBoi Steroids for Elementor scored77%from 54 tests.

About plugin

  • Plugin page: ooohboi-steroids-...
  • Plugin version: 2.1.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Mar 10, 2020
  • Latest release: Aug 26, 2023
  • Number of updates: 108
  • Update frequency: every 11.7 days
  • Top authors: ooohboi (100%)

Code review

54 tests

User reviews

115 reviews

Install metrics

60,000+ active /904,756 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.01MB] [CPU: ▼3.00ms] Passed 4 tests

An overview of server-side resources used by OoohBoi Steroids for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.34 ▼2.45
Dashboard /wp-admin3.31 ▲0.0148.85 ▼5.12
Posts /wp-admin/edit.php3.36 ▲0.0148.40 ▼2.58
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.62 ▼1.83
Media Library /wp-admin/upload.php3.23 ▲0.0136.26 ▼0.76

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 628 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for OoohBoi Steroids for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲9713.28 ▼1.311.92 ▲0.1440.06 ▼6.88
Dashboard /wp-admin2,224 ▲364.85 ▼1.03103.02 ▼11.7042.07 ▲2.40
Posts /wp-admin/edit.php2,109 ▲202.06 ▲0.0539.29 ▼2.6235.26 ▼3.84
Add New Post /wp-admin/post-new.php1,546 ▲423.17 ▲5.13646.14 ▲3.3060.14 ▼8.91
Media Library /wp-admin/upload.php1,406 ▲184.20 ▲0.13107.49 ▼1.2949.64 ▲6.85

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/ooohboi-steroids-for-elementor/inc/info/ob-landing.php
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant SFE_DIR_URL - assumed 'SFE_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ooohboi-steroids-for-elementor/inc/info/ob-landing.php on line 26
    • > PHP Warning
      Use of undefined constant SFE_DIR_URL - assumed 'SFE_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ooohboi-steroids-for-elementor/inc/info/ob-landing.php on line 2
    • > PHP Warning
      Use of undefined constant SFE_DIR_URL - assumed 'SFE_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ooohboi-steroids-for-elementor/inc/info/ob-landing.php on line 96
    • > PHP Warning
      Use of undefined constant SFE_DIR_URL - assumed 'SFE_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ooohboi-steroids-for-elementor/inc/info/ob-landing.php on line 58
    • > PHP Fatal error
      Uncaught Error: Class 'OoohBoi_Steroids' not found in wp-content/plugins/ooohboi-steroids-for-elementor/inc/info/ob-landing.php:103
    • > PHP Warning
      Use of undefined constant SFE_DIR_URL - assumed 'SFE_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ooohboi-steroids-for-elementor/inc/info/ob-landing.php on line 50

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #1, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #2, #20, #21, #22, #23, #24, #25, #3, #4, #5, #6, #7, #8, #9 in ooohboi-steroids-for-elementor/assets to your readme.txt
You can look at the official readme.txt

ooohboi-steroids-for-elementor/ooohboi-steroids.php 77% from 13 tests

The main file in "OoohBoi Steroids for Elementor" v. 2.1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("ooohboi-steroids-for-elementor.php" instead of "ooohboi-steroids.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: Please don't use more than 140 characters for the plugin description (currently 179 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 detected56,367 lines of code in 568 files:
LanguageFilesBlank linesComment linesLines of code
PHP753,0572,82918,871
JSON10015,622
JavaScript4662,1808,7789,850
CSS222493657,437
SVG3002,687
PO File17471,1861,900

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity14.76
▷ Minimum class complexity1.00
▷ Maximum class complexity208.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes72
▷ Abstract classes11.39%
▷ Concrete classes7198.61%
▷ Final classes34.23%
Methods340
▷ Static methods17250.59%
▷ Public methods31993.82%
▷ Protected methods154.41%
▷ Private methods61.76%
Functions11
▷ Named functions19.09%
▷ Anonymous functions1090.91%
Constants6
▷ Global constants233.33%
▷ Class constants466.67%
▷ Public constants4100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
38 PNG files occupy 1.04MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/img/glider-renewed.png118.26KB34.08KB▼ 71.18%
inc/exopite-simple-options/assets/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
inc/exopite-simple-options/assets/images/ui-bg_inset-soft_95_fef1ec_1x100.png0.12KB0.16KB0.00%
inc/img/eps-banner.png20.86KB6.94KB▼ 66.73%
inc/exopite-simple-options/assets/jquery.minicolors.png67.02KB34.31KB▼ 48.80%