84% squad-modules-for-divi

Code Review | Squad Modules Lite - Advanced Divi Modules for Divi Theme, Extra Theme and Divi Builder

WordPress plugin Squad Modules Lite - Advanced Divi Modules for Divi Theme, Extra Theme and Divi Builder scored84%from 54 tests.

About plugin

  • Plugin page: squad-modules-for...
  • Plugin version: 1.4.6
  • PHP compatiblity: 5.6.40+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.5
  • WordPress version: 6.3.1
  • First release: Jun 19, 2023
  • Latest release: Nov 12, 2023
  • Number of updates: 83
  • Update frequency: every 1.8 days
  • Top authors: wpsquad (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,038 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼3.82ms] Passed 4 tests

Analyzing server-side resources used by Squad Modules Lite - Advanced Divi Modules for Divi Theme, Extra Theme and Divi Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1135.15 ▼3.12
Dashboard /wp-admin3.40 ▲0.0946.47 ▼5.06
Posts /wp-admin/edit.php3.51 ▲0.1551.32 ▲3.88
Add New Post /wp-admin/post-new.php6.02 ▲0.1385.85 ▼10.71
Media Library /wp-admin/upload.php3.32 ▲0.0936.61 ▲3.63

Server storage [IO: ▲2.95MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 140 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
disq-settings
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Squad Modules Lite - Advanced Divi Modules for Divi Theme, Extra Theme and Divi Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8214.41 ▲0.201.82 ▲0.3941.11 ▲0.68
Dashboard /wp-admin2,247 ▲735.61 ▲0.0492.90 ▲1.9140.21 ▼3.79
Posts /wp-admin/edit.php2,154 ▲542.04 ▲0.0340.41 ▲5.8534.39 ▼3.66
Add New Post /wp-admin/post-new.php1,575 ▲4925.19 ▲2.27615.50 ▲10.0961.74 ▲14.87
Media Library /wp-admin/upload.php1,457 ▲544.30 ▲0.12103.15 ▲0.5443.01 ▼1.76

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Please fix the following
  • 69× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/squad-modules-for-divi/admin/Plugin_Row_Meta.php
    • > /wp-content/plugins/squad-modules-for-divi/includes/modules/BusinessHoursChild/BusinessHoursChild.php
    • > /wp-content/plugins/squad-modules-for-divi/includes/modules/BusinessHours/BusinessHours.php
    • > /wp-content/plugins/squad-modules-for-divi/SquadModules.php
    • > /wp-content/plugins/squad-modules-for-divi/admin/Menu.php
    • > /wp-content/plugins/squad-modules-for-divi/includes/manager/Rest_API_Routes.php
    • > /wp-content/plugins/squad-modules-for-divi/includes/base/BuilderModule/Traits/Field_Definition.php
    • > /wp-content/plugins/squad-modules-for-divi/admin/Assets.php
    • > /wp-content/plugins/squad-modules-for-divi/includes/base/BuilderIntegrationAPI.php
    • > /wp-content/plugins/squad-modules-for-divi/includes/utils/Helper.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: divi module, divi page builder, divi theme, divi builder, divi...

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

The main PHP file in "Squad Modules Lite - Advanced Divi Modules for Divi Theme, Extra Theme and Divi Builder" ver. 1.4.6 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Requires PHP: The required version number must match the one declared in readme.txt ("5.6" instead of "5.6.40")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected24,744 lines of code in 127 files:
LanguageFilesBlank linesComment linesLines of code
PHP852,1334,95024,402
XML100297
SVG210021
JavaScript1622719
CSS4005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity12.70
▷ Minimum class complexity1.00
▷ Maximum class complexity155.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces36
Interfaces0
Traits7
Classes62
▷ Abstract classes812.90%
▷ Concrete classes5487.10%
▷ Final classes11.85%
Methods449
▷ Static methods5311.80%
▷ Public methods28663.70%
▷ Protected methods10022.27%
▷ Private methods6314.03%
Functions16
▷ Named functions16.25%
▷ Anonymous functions1593.75%
Constants6
▷ Global constants6100.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
4 compressed PNG files occupy 0.02MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
build/admin/images/divi-squad-menu-active.png4.18KB4.17KB0.26%
build/admin/images/divi-squad-menu-default.png4.37KB4.36KB0.16%
build/admin/images/divi-squad-default.png4.06KB4.07KB0.00%
build/admin/images/divi-squad-menu-focus.png4.26KB4.25KB0.11%