78% supreme-modules-for-divi

Code Review | Supreme Modules Lite - Divi Theme, Extra Theme and Divi Builder

WordPress plugin Supreme Modules Lite - Divi Theme, Extra Theme and Divi Builder scored78%from 54 tests.

About plugin

  • Plugin page: supreme-modules-f...
  • Plugin version: 2.5.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 24, 2018
  • Latest release: Sep 28, 2023
  • Number of updates: 382
  • Update frequency: every 4.8 days
  • Top authors: divisupreme (100%)

Code review

54 tests

User reviews

94 reviews

Install metrics

200,000+ active /1,870,297 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.49MB] [CPU: ▲0.06ms] Passed 4 tests

Analyzing server-side resources used by Supreme Modules Lite - Divi Theme, Extra Theme and Divi Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.97 ▲0.5147.14 ▲6.44
Dashboard /wp-admin3.86 ▲0.5254.37 ▼6.93
Posts /wp-admin/edit.php3.91 ▲0.5656.42 ▲12.61
Add New Post /wp-admin/post-new.php6.36 ▲0.4788.52 ▼4.52
Media Library /wp-admin/upload.php3.70 ▲0.4740.96 ▲5.25

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 136 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
dsm_general
db_upgraded
dsm_settings_social_media
widget_recent-posts
widget_theysaidso_widget
dsm_theme_builder
dsm_settings_misc
can_compress_scripts

Browser metrics Passed 4 tests

Supreme Modules Lite - Divi Theme, Extra Theme and Divi Builder: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,996 ▲22514.74 ▲0.011.60 ▼0.3338.17 ▼6.65
Dashboard /wp-admin2,398 ▲2276.38 ▲0.72110.69 ▲15.2435.70 ▼2.50
Posts /wp-admin/edit.php2,329 ▲2293.57 ▲1.5451.96 ▲12.4329.98 ▼1.82
Add New Post /wp-admin/post-new.php1,709 ▲17222.27 ▲4.11592.05 ▼45.3434.04 ▼42.02
Media Library /wp-admin/upload.php1,464 ▲704.33 ▲0.1186.55 ▼11.7341.88 ▼4.35

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • dsm_settings_misc
    • widget_recent-comments
    • dsm_general
    • dsm_theme_builder
    • theysaidso_admin_options
    • db_upgraded
    • dsm_settings_social_media

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/supreme-modules-for-divi/public/partials/dsm-supreme-modules-for-divi-public-display.php
    • > /wp-content/plugins/supreme-modules-for-divi/admin/partials/dsm-supreme-modules-for-divi-admin-display.php
  • 75× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/supreme-modules-for-divi/includes/modules/BusinessHours/BusinessHours.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/supreme-modules-for-divi/includes/modules/Lottie/Lottie.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/supreme-modules-for-divi/includes/modules/ImageAccordion/ImageAccordion.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/supreme-modules-for-divi/includes/templates/page-template-404.php:6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/supreme-modules-for-divi/includes/modules/CalderaForms/includes/button/field.php on line 17
    • > PHP Notice
      Undefined variable: field_name in wp-content/plugins/supreme-modules-for-divi/includes/modules/CalderaForms/includes/dropdown/field.php on line 8
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/supreme-modules-for-divi/includes/modules/ImageAccordionChild/ImageAccordionChild.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/supreme-modules-for-divi/includes/modules/Menu/Menu.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/supreme-modules-for-divi/includes/modules/Shapes/Shapes.php:3
    • > PHP Notice
      Undefined variable: field in wp-content/plugins/supreme-modules-for-divi/includes/modules/CalderaForms/includes/button/field.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: Please take inspiration from this readme.txt

supreme-modules-for-divi/supreme-modules-for-divi.php 92% from 13 tests

The entry point to "Supreme Modules Lite - Divi Theme, Extra Theme and Divi Builder" version 2.5.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin30,119 lines of code in 122 files:
LanguageFilesBlank linesComment linesLines of code
PHP541,7791,94118,982
CSS251,6019810,197
JavaScript211233442
PO File1135181313
SVG2100185

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 137)
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity39.16
▷ Minimum class complexity1.00
▷ Maximum class complexity151.00
Average method complexity5.92
▷ Minimum method complexity1.00
▷ Maximum method complexity137.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes38
▷ Abstract classes00.00%
▷ Concrete classes38100.00%
▷ Final classes00.00%
Methods277
▷ Static methods72.53%
▷ Public methods26896.75%
▷ Protected methods10.36%
▷ Private methods82.89%
Functions14
▷ Named functions1071.43%
▷ Anonymous functions428.57%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin