84% shortcodes-for-divi

Code Review | Shortcodes for Divi

WordPress plugin Shortcodes for Divi scored84%from 54 tests.

About plugin

  • Plugin page: shortcodes-for-divi
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 30, 2019
  • Latest release: Oct 7, 2023
  • Number of updates: 25
  • Update frequency: every 60.3 days
  • Top authors: kurowskanna (72%)annaqq (28%)aspengrovestudios (8%)

Code review

54 tests

User reviews

7 reviews

Install metrics

10,000+ active /36,806 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: ▼0.00MB] [CPU: ▼10.42ms] Passed 4 tests

Server-side resources used by Shortcodes for Divi
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.84 ▲1.16
Dashboard /wp-admin3.31 ▼0.0349.38 ▼24.32
Posts /wp-admin/edit.php3.37 ▲0.0149.37 ▼1.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.22 ▼17.40
Media Library /wp-admin/upload.php3.24 ▲0.0138.95 ▲4.02

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Shortcodes for Divi
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.72 ▲0.371.81 ▲0.0139.41 ▼6.57
Dashboard /wp-admin2,198 ▲205.57 ▼0.1585.31 ▼19.9441.32 ▲1.19
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0535.19 ▼4.1732.69 ▼5.32
Add New Post /wp-admin/post-new.php1,526 ▼023.78 ▲0.60647.99 ▼59.9953.77 ▼7.65
Media Library /wp-admin/upload.php1,403 ▲64.14 ▼0.0399.06 ▼3.9449.34 ▲5.93

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/shortcodes-for-divi/shortcodes-for-divi.php:61

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, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention: The official readme.txt is a good inspiration

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

The main file in "Shortcodes for Divi" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
43 characters long description:
Create Shortcodes from Divi Library Layouts

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
There were no executable files found in this plugin88 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1295160
PO File16728

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin