84% simple-divi-shortcode

Code Review | Simple Divi Shortcode

WordPress plugin Simple Divi Shortcode scored 84% from 54 tests.

About plugin

  • Plugin page: simple-divi-short...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 22, 2018
  • Latest release: Aug 9, 2023
  • Number of updates: 22
  • Update frequency: every 89.4 days
  • Top authors: creaweb2b (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

10,000+ active / 41,824 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.29ms] Passed 4 tests

Server-side resources used by Simple Divi Shortcode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.35 ▼1.44
Dashboard /wp-admin3.31 ▲0.0148.86 ▼3.66
Posts /wp-admin/edit.php3.36 ▲0.0041.79 ▼3.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.13 ▼12.35
Media Library /wp-admin/upload.php3.23 ▲0.0032.53 ▲0.65

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Simple Divi Shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.41 ▼0.001.84 ▲0.1245.26 ▲1.16
Dashboard /wp-admin2,206 ▲185.86 ▲0.77115.12 ▲6.2844.09 ▲7.54
Posts /wp-admin/edit.php2,086 ▼32.14 ▲0.1435.04 ▼0.4033.18 ▼0.78
Add New Post /wp-admin/post-new.php1,542 ▲2118.13 ▼5.18615.33 ▼115.0853.85 ▲4.29
Media Library /wp-admin/upload.php1,385 ▼64.22 ▲0.06124.00 ▲26.2652.18 ▲5.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • 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 everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/simple-divi-shortcode/simple_divi_shortcode.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Requires php: Version not formatted correctly
You can take inspiration from this readme.txt

simple-divi-shortcode/simple_divi_shortcode.php 92% from 13 tests

The main file in "Simple Divi Shortcode" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-divi-shortcode.php" instead of "simple_divi_shortcode.php")

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
Good job! No executable or dangerous file extensions detected8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16188

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin