79% addons-for-divi

Code Review | Divi Torque Lite - Divi Theme and Extra Theme

WordPress plugin Divi Torque Lite - Divi Theme and Extra Theme scored79%from 54 tests.

About plugin

  • Plugin page: addons-for-divi
  • Plugin version: 3.6.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Oct 29, 2020
  • Latest release: Nov 25, 2023
  • Number of updates: 101
  • Update frequency: every 12.3 days
  • Top authors: divipeople (63.37%)divitorque (20.79%)wppaw (17.82%)

Code review

54 tests

User reviews

104 reviews

Install metrics

30,000+ active /219,159 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.78MB] [CPU: ▲2.53ms] Passed 4 tests

Server-side resources used by Divi Torque Lite - Divi Theme and Extra Theme
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.27 ▲0.8138.33 ▼2.48
Dashboard /wp-admin4.09 ▲0.7849.35 ▼1.34
Posts /wp-admin/edit.php4.13 ▲0.7753.66 ▲7.94
Add New Post /wp-admin/post-new.php6.67 ▲0.78106.94 ▲19.10
Media Library /wp-admin/upload.php4.01 ▲0.7841.78 ▲5.98
Popups /wp-admin/edit.php?post_type=brainaddons-popup4.0538.34
Options /wp-admin/admin.php?page=addons-for-divi3.8129.33

Server storage [IO: ▲5.44MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 216 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
dt-version
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Divi Torque Lite - Divi Theme and Extra Theme
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,974 ▲20213.53 ▼0.7911.19 ▲9.1040.57 ▼3.62
Dashboard /wp-admin2,235 ▲615.56 ▼0.0297.01 ▼3.7478.30 ▲32.19
Posts /wp-admin/edit.php2,163 ▲632.13 ▲0.1140.95 ▲0.9735.90 ▼1.49
Add New Post /wp-admin/post-new.php1,647 ▲12123.54 ▲0.45591.04 ▼60.9791.64 ▲30.05
Media Library /wp-admin/upload.php1,452 ▲554.16 ▼0.0595.96 ▼2.6572.17 ▲30.86
Popups /wp-admin/edit.php?post_type=brainaddons-popup1,1361.9337.9431.31
Options /wp-admin/admin.php?page=addons-for-divi280.410.073.59

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • The uninstall procedure has failed, leaving 7 options in the database
    • dt-version
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 66× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/addons-for-divi/includes/deprecated/admin/view/admin-templates.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/addons-for-divi/includes/metabox/view/display-conditions.php:3
    • > PHP Notice
      Undefined variable: show_date in wp-content/plugins/addons-for-divi/includes/modules/PostList/templates/list-content.php on line 39
    • > PHP Fatal error
      Uncaught Error: Class 'BA_Builder_Module' not found in wp-content/plugins/addons-for-divi/includes/modules/IconBox/IconBox.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'BA_Builder_Module_Type_PostBased' not found in wp-content/plugins/addons-for-divi/includes/modules/PostList/PostList.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'BA_Builder_Module' not found in wp-content/plugins/addons-for-divi/includes/modules/Cf7Styler/Cf7Styler.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'BA_Builder_Module' not found in wp-content/plugins/addons-for-divi/includes/modules/ImageCompare/ImageCompare.php:2
    • > PHP Notice
      Undefined variable: show_thumb in wp-content/plugins/addons-for-divi/includes/modules/PostList/templates/list-content.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/addons-for-divi/includes/special-notices.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function DiviTorque\\add_action() in wp-content/plugins/addons-for-divi/includes/deprecated/customizer/customizer.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/edit.php?post_type=brainaddons-popup
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).select2 is not a function" "TypeError: $(...).select2 is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/edit.php?post_type=brainaddons-popup:54:35)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/edit.php?post_type=brainaddons-popup
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).select2 is not a function
    • > GET request to /wp-admin/admin.php?page=addons-for-divi
    • > Network (severe)
    wp-admin/admin.php?page=addons-for-divi - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: divi carousel, divi module, divi, divi theme, divi popup...

addons-for-divi/addons-for-divi.php Passed 13 tests

The principal PHP file in "Divi Torque Lite - Divi Theme and Extra Theme" v. 3.6.6 is loaded by WordPress automatically on each request
50 characters long description:
Powerful divi modules to create powerful websites.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected62,905 lines of code in 202 files:
LanguageFilesBlank linesComment linesLines of code
PHP813,93759134,916
JSX321,0702009,199
CSS471,2391188,470
JavaScript346176906,119
PO File11,86834,4873,931
XML110175
SVG50089
JSON1006

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity23.97
▷ Minimum class complexity1.00
▷ Maximum class complexity251.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes58
▷ Abstract classes11.72%
▷ Concrete classes5798.28%
▷ Final classes11.75%
Methods431
▷ Static methods5312.30%
▷ Public methods37085.85%
▷ Protected methods5011.60%
▷ Private methods112.55%
Functions47
▷ Named functions3268.09%
▷ Anonymous functions1531.91%
Constants9
▷ Global constants666.67%
▷ Class constants333.33%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected