62% acme-divi-modules

Code Review | ACME Divi Modules

WordPress plugin ACME Divi Modules scored62%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: 6.3.1
  • 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

800+ active /18,410 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: ▼1.63MB] [CPU: ▼53.46ms] Passed 4 tests

Server-side resources used by ACME Divi Modules
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.63 ▼1.1111.46 ▼34.54
Dashboard /wp-admin2.68 ▼0.9621.40 ▼44.96
Posts /wp-admin/edit.php2.68 ▼1.0015.94 ▼48.93
Add New Post /wp-admin/post-new.php2.67 ▼3.4717.16 ▼85.41
Media Library /wp-admin/upload.php2.68 ▼0.8115.35 ▼21.53
Divi Modules /wp-admin/admin.php?page=acme-divi-modules2.6715.52

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for ACME Divi Modules
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲13013.54 ▼0.8410.19 ▲8.4639.97 ▼3.42
Dashboard /wp-admin2,217 ▲405.66 ▲0.0089.69 ▼3.5535.15 ▼11.13
Posts /wp-admin/edit.php2,122 ▲192.00 ▲0.0140.60 ▼6.4735.74 ▼2.69
Add New Post /wp-admin/post-new.php1,561 ▲1622.94 ▼0.14642.42 ▲42.4251.93 ▲4.24
Media Library /wp-admin/upload.php1,419 ▲224.25 ▼0.07109.56 ▲4.8047.28 ▲1.44
Divi Modules /wp-admin/admin.php?page=acme-divi-modules8191.8227.2227.93

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught 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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/acme-divi-modules/public/partials/acme-divi-modules-public-display.php
  • 10× PHP files trigger errors when accessed directly with GET requests:
    • > 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
    • > 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: Call to undefined function apply_filters() in wp-content/plugins/acme-divi-modules/admin/partials/acme_divi_modules_options.php:9
    • > 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-abmp-terms-loop.php:17
    • > 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: 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-admin-display.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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
Attributes that require attention:
  • 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

The main PHP script in "ACME Divi Modules" version 1.3.5 is automatically included on every request by WordPress
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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected6,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

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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_dots-small_65_a6a6a6_2x2.png0.20KB0.08KB▼ 57.97%
admin/css/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%
admin/css/images/ui-icons_cc0000_256x240.png4.44KB4.17KB▼ 6.02%
admin/css/images/ui-bg_highlight-hard_100_eeeeee_1x100.png0.25KB0.14KB▼ 43.65%
admin/css/images/ui-bg_diagonals-thick_75_f3d8d8_40x40.png0.40KB0.15KB▼ 61.99%