73% sumo-divi-modules

Code Review | Ultimate Divi Modules Suite - Divi Sumo Lite

WordPress plugin Ultimate Divi Modules Suite - Divi Sumo Lite scored73%from 54 tests.

About plugin

  • Plugin page: sumo-divi-modules
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Oct 10, 2020
  • Latest release: Apr 9, 2022
  • Number of updates: 13
  • Update frequency: every 42.1 days
  • Top authors: munirkamal (76.92%)divisumo (30.77%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /3,442 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲4.62MB] [CPU: ▲21.81ms] Passed 4 tests

A check of server-side resources used by Ultimate Divi Modules Suite - Divi Sumo Lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /8.49 ▲5.0366.38 ▲27.61
Dashboard /wp-admin8.51 ▲5.2167.51 ▲22.65
Posts /wp-admin/edit.php8.51 ▲5.1668.77 ▲20.30
Add New Post /wp-admin/post-new.php8.96 ▲3.07119.57 ▲16.67
Media Library /wp-admin/upload.php8.51 ▲5.2865.14 ▲33.40
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius8.5152.72

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 189 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
widget_recent-comments
fs_active_plugins
widget_theysaidso_widget
fs_accounts
theysaidso_admin_options
can_compress_scripts
fs_debug_mode
widget_recent-posts
fs_gdpr

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ultimate Divi Modules Suite - Divi Sumo Lite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲10413.14 ▼1.251.81 ▼0.0631.60 ▼16.70
Dashboard /wp-admin2,242 ▲575.85 ▼0.00100.31 ▼4.4939.53 ▼1.52
Posts /wp-admin/edit.php2,128 ▲392.01 ▼0.0539.00 ▼4.1732.95 ▼3.30
Add New Post /wp-admin/post-new.php1,537 ▲423.09 ▼0.02638.34 ▲13.4556.17 ▲5.70
Media Library /wp-admin/upload.php1,427 ▲424.24 ▲0.0696.63 ▼2.4044.42 ▲2.91
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,0741.7125.4830.07

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/sumo-divi-modules/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • Zombie WordPress options were found after uninstall: 10 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • fs_debug_mode
    • widget_recent-comments
    • fs_active_plugins
    • fs_accounts
    • fs_gdpr
    • widget_recent-posts

Smoke tests 75% 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 50% 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
Please take a closer look at the following
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/sumo-divi-modules/includes/modules/facebook-page/fields.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/sumo-divi-modules/includes/Sumo.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/sumo-divi-modules/includes/modules/facebook-button/fields.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sumo-divi-modules/admin/sumo-admin-page.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/sumo-divi-modules/includes/modules/dual-button/fields.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots lack descriptions #1, #10, #11, #12, #2, #3, #4, #5, #6, #7, #8, #9 in sumo-divi-modules/assets to your readme.txt
You can take inspiration from this readme.txt

sumo-divi-modules/divi-sumo-lite.php 77% from 13 tests

Analyzing the main PHP file in "Ultimate Divi Modules Suite - Divi Sumo Lite" version 1.0.6
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
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("sumo-divi-modules.php" instead of "divi-sumo-lite.php")

Code Analysis 97% from 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 detected37,358 lines of code in 148 files:
LanguageFilesBlank linesComment linesLines of code
PHP1268,10616,21136,819
Markdown1680214
JavaScript53459196
CSS15140102
JSON10027

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity75.56
▷ Minimum class complexity1.00
▷ Maximum class complexity2,911.00
Average method complexity4.84
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes59
▷ Abstract classes23.39%
▷ Concrete classes5796.61%
▷ Final classes00.00%
Methods1,177
▷ Static methods17314.70%
▷ Public methods83671.03%
▷ Protected methods151.27%
▷ Private methods32627.70%
Functions97
▷ Named functions97100.00%
▷ Anonymous functions00.00%
Constants123
▷ Global constants9879.67%
▷ Class constants2520.33%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%