84% dms-shortcode-module-for-divi

Code Review | DMS Shortcode Module For Divi

WordPress plugin DMS Shortcode Module For Divi scored 84% from 54 tests.

About plugin

  • Plugin page: dms-shortcode-mod...
  • Plugin version: 2.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0.3
  • WordPress version: 6.3.1
  • First release: Nov 13, 2019
  • Latest release: Oct 26, 2022
  • Number of updates: 33
  • Update frequency: every 32.7 days
  • Top authors: ramthas (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 1,484 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.33ms] Passed 4 tests

A check of server-side resources used by DMS Shortcode Module For Divi
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.62 ▼2.95
Dashboard /wp-admin3.31 ▲0.0144.73 ▼5.19
Posts /wp-admin/edit.php3.36 ▲0.0146.92 ▼4.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.48 ▼5.00
Media Library /wp-admin/upload.php3.23 ▲0.0136.83 ▲3.77

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

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

Browser metrics Passed 4 tests

DMS Shortcode Module For Divi: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.44 ▼0.851.81 ▼0.0543.44 ▲4.05
Dashboard /wp-admin2,206 ▲185.91 ▲0.09107.78 ▼6.1044.66 ▲1.84
Posts /wp-admin/edit.php2,092 ▼02.00 ▼0.0039.57 ▼2.9736.27 ▼2.44
Add New Post /wp-admin/post-new.php1,533 ▲1423.32 ▲2.16670.11 ▲91.7164.95 ▲10.08
Media Library /wp-admin/upload.php1,382 ▼94.23 ▲0.0197.99 ▼5.9941.84 ▼2.16

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/dms-shortcode-module-for-divi/dms-shortcode-module-fordivi.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
8 plugin tags: module, menu, shortcode, divi, mega menu...

dms-shortcode-module-for-divi/dms-shortcode-module-fordivi.php 85% from 13 tests

The main PHP file in "DMS Shortcode Module For Divi" ver. 2.5 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("dms-shortcode-module-for-divi.php" instead of "dms-shortcode-module-fordivi.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 200 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected21 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181721

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.22MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-5.png31.43KB15.90KB▼ 49.41%
screenshot-4.png34.76KB17.72KB▼ 49.02%
screenshot-1.png45.20KB15.64KB▼ 65.40%
screenshot-6.png30.80KB15.05KB▼ 51.15%
screenshot-3.png35.67KB17.92KB▼ 49.75%