73% acme-divi-modules

Code Review | ACME Divi Modules

WordPress plugin ACME Divi Modules scored 73% from 54 tests.

About plugin

  • Plugin page: acme-divi-modules
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.2
  • WordPress version: 5.9.2
  • First release: Nov 30, 2016
  • Latest release: Sep 2, 2019
  • Number of updates: 44
  • Update frequency: every 23.0 days
  • Top authors: acmemediakits (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active / 17,592 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼2.29MB] [CPU: ▼338.84ms] Passed 4 tests

This is a short check of server-side resources used by ACME Divi Modules
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.446.31 ▼44.25
Dashboard /wp-admin2.11 ▼1.308.60 ▼27.29
Posts /wp-admin/edit.php2.11 ▼1.536.70 ▼31.13
Add New Post /wp-admin/post-new.php2.11 ▼4.897.26 ▼1,252.69
Media Library /wp-admin/upload.php2.11 ▼1.186.38 ▼17.37
Divi Modules /wp-admin/admin.php?page=acme-divi-modules2.117.25

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

ACME Divi Modules: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,929 ▲20716.26 ▲0.709.99 ▲4.332.30 ▲0.27
Dashboard /wp-admin2,916 ▲626.11 ▼0.02116.60 ▼12.18157.02 ▼8.22
Posts /wp-admin/edit.php2,712 ▲183.24 ▲0.0064.03 ▼1.53143.33 ▲0.25
Add New Post /wp-admin/post-new.php1,677 ▲1616.20 ▼0.30436.94 ▲18.90155.85 ▲4.31
Media Library /wp-admin/upload.php1,722 ▲215.51 ▼0.01134.20 ▼7.42181.40 ▼5.25
Divi Modules /wp-admin/admin.php?page=acme-divi-modules1,0172.7754.70100.74

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
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/acme-divi-modules/admin/class-acme-divi-modules-admin.php+563
    Trying to access array offset on value of type bool

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=acme-divi-modules
    • > Notice in wp-content/plugins/acme-divi-modules/admin/class-acme-divi-modules-admin.php+563
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/admin.php?page=acme-divi-modules
    • > Notice in wp-content/plugins/acme-divi-modules/admin/class-acme-divi-modules-admin.php+452
    Undefined variable: myCSS
    • > GET request to /wp-admin/admin.php?page=acme-divi-modules
    • > Notice in wp-content/plugins/acme-divi-modules/admin/partials/acme-divi-modules-admin-display.php+15
    Undefined index: acme_tab

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/acme-divi-modules/public/partials/acme-divi-modules-public-display.php
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/acme-divi-modules/admin/partials/acme-divi-modules-admin-display.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/acme-divi-modules/admin/partials/acme-divi-modules-admin-display-options.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/acme-divi-modules/admin/partials/acme-divi-modules-admin-display-abmsi-main-form.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/acme-divi-modules/admin/class-acme-divi-modules-modules.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/acme-divi-modules/admin/partials/acme-divi-modules-admin-display-abmp-main-form.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/acme-divi-modules/admin/partials/acme_divi_modules_options.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/acme-divi-modules/admin/partials/acme-divi-modules-admin-display-abmp-terms-loop.php:17
    • > PHP Notice
      Undefined index: acme_tab in wp-content/plugins/acme-divi-modules/admin/partials/acme-divi-modules-admin-display.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/acme-divi-modules/admin/partials/acme-divi-modules-admin-display-abmp-post_type-loop.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/acme-divi-modules/admin/partials/acme-divi-modules-admin-display-abmb-main-form.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === acme-divi-modules === )
The official readme.txt is a good inspiration

acme-divi-modules/acme-divi-modules.php Passed 13 tests

Analyzing the main PHP file in "ACME Divi Modules" version 1.3.5
50 characters long description:
This plugin add some extra modules to Divi Builder

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin6,215 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP215521,0033,540
CSS389641,415
PO File23556531,028
JavaScript35759232

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity29.36
▷ Minimum class complexity1.00
▷ Maximum class complexity149.00
Average method complexity5.66
▷ Minimum method complexity1.00
▷ Maximum method complexity84.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods67
▷ Static methods57.46%
▷ Public methods5988.06%
▷ Protected methods00.00%
▷ Private methods811.94%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/css/images/ui-bg_highlight-soft_15_cc0000_1x100.png0.31KB0.18KB▼ 43.48%
admin/css/images/ui-icons_004276_256x240.png4.44KB4.17KB▼ 6.02%
admin/css/images/ui-bg_dots-small_65_a6a6a6_2x2.png0.20KB0.08KB▼ 57.97%
admin/css/images/ui-bg_diagonals-thick_75_f3d8d8_40x40.png0.40KB0.15KB▼ 61.99%
admin/css/images/ui-bg_highlight-hard_100_eeeeee_1x100.png0.25KB0.14KB▼ 43.65%