84% booster-pack-for-divi

Code Review | Booster Pack for Divi

WordPress plugin Booster Pack for Divi scored84%from 54 tests.

About plugin

  • Plugin page: booster-pack-for-...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.5
  • WordPress version: 6.3.1
  • First release: May 11, 2018
  • Latest release: May 29, 2018
  • Number of updates: 5
  • Update frequency: every 3.8 days
  • Top authors: webtechstreet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

800+ active /5,954 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.00MB] [CPU: ▼8.48ms] Passed 4 tests

An overview of server-side resources used by Booster Pack for Divi
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.84 ▼7.05
Dashboard /wp-admin3.31 ▲0.0145.44 ▼5.54
Posts /wp-admin/edit.php3.36 ▲0.0040.31 ▼5.95
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.09 ▼15.38
Media Library /wp-admin/upload.php3.23 ▲0.0036.47 ▲3.45

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Booster Pack for Divi
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.181.62 ▼0.1335.85 ▼16.48
Dashboard /wp-admin2,209 ▲215.83 ▲0.96101.33 ▼17.0440.19 ▼3.76
Posts /wp-admin/edit.php2,086 ▼32.03 ▲0.0435.58 ▲0.3431.00 ▼3.67
Add New Post /wp-admin/post-new.php1,544 ▲1118.52 ▼4.60639.48 ▼62.2268.81 ▲9.76
Media Library /wp-admin/upload.php1,388 ▼34.26 ▲0.0697.93 ▼2.9740.80 ▼5.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/booster-pack-for-divi/includes/BoosterPackDivi.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/booster-pack-for-divi/includes/modules/IconList/IconList.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/booster-pack-for-divi/booster-pack-divi.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/booster-pack-for-divi/includes/modules/IconListItem/IconListItem.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/booster-pack-for-divi/includes/modules/SplitText/SplitText.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/booster-pack-for-divi/includes/modules/TextSeparator/TextSeparator.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/booster-pack-for-divi/includes/modules/FlipBox/FlipBox.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
3 plugin tags: pagebuilder, flipbox, divi

booster-pack-for-divi/booster-pack-divi.php 85% from 13 tests

The main PHP script in "Booster Pack for Divi" version 1.1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("booster-pack-for-divi.php" instead of "booster-pack-divi.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
No dangerous file extensions were detected2,304 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP8124641,643
Markdown12120453
PO File190175204
CSS2002
JavaScript2002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity16.00
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity4.10
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin