73% shortcode-addons

Code Review | Shortcode Addons- with Visual Composer, Divi, Beaver Builder and Elementor Extension

WordPress plugin Shortcode Addons- with Visual Composer, Divi, Beaver Builder and Elementor Extension scored73%from 54 tests.

About plugin

  • Plugin page: shortcode-addons
  • Plugin version: 3.2.5
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3.0
  • WordPress version: 6.3.1
  • First release: Feb 16, 2019
  • Latest release: Aug 28, 2023
  • Number of updates: 47
  • Update frequency: every 39.7 days
  • Top authors: biplob018 (100%)

Code review

54 tests

User reviews

30 reviews

Install metrics

2,000+ active /68,278 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼1.05ms] 75% from 4 tests

Analyzing server-side resources used by Shortcode Addons- with Visual Composer, Divi, Beaver Builder and Elementor Extension
The following require your attention
  • CPU: You should keep total CPU usage under 500.00ms (currently 609.38ms on /wp-admin/admin.php?page=shortcode-addons-plugins)
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0648.65 ▲10.54
Dashboard /wp-admin3.36 ▲0.0648.71 ▼1.25
Posts /wp-admin/edit.php3.48 ▲0.1253.99 ▲3.78
Add New Post /wp-admin/post-new.php5.94 ▲0.0697.26 ▼6.15
Media Library /wp-admin/upload.php3.29 ▲0.0637.79 ▼0.56
Oxilab Plugins /wp-admin/admin.php?page=shortcode-addons-plugins3.37609.38
Font Manager /wp-admin/admin.php?page=shortcode-addons-font3.2939.95
Addons Support /wp-admin/admin.php?page=shortcode-addons-support3.2935.66
Settings /wp-admin/admin.php?page=shortcode-addons-settings3.3348.42
Elements /wp-admin/admin.php?page=shortcode-addons3.3745.04
Import /wp-admin/admin.php?page=shortcode-addons-import3.3237.10

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 98 new files
Database: 3 new tables, 9 new options
New tables
wp_oxi_div_import
wp_oxi_div_list
wp_oxi_div_style
New WordPress options
shortcode_addons_activation_date
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
SA_ADDONS_PLUGIN_VERSION
widget_shortcode_addons_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Shortcode Addons- with Visual Composer, Divi, Beaver Builder and Elementor Extension
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲9914.25 ▼0.102.05 ▲0.4643.38 ▲1.07
Dashboard /wp-admin2,244 ▲735.57 ▼0.1086.33 ▼10.4038.97 ▼2.29
Posts /wp-admin/edit.php2,146 ▲462.03 ▲0.0939.23 ▼4.5736.06 ▼4.36
Add New Post /wp-admin/post-new.php1,563 ▲3723.44 ▼0.16652.79 ▼7.4356.84 ▼6.77
Media Library /wp-admin/upload.php1,449 ▲494.20 ▲0.0296.09 ▼8.3845.26 ▼0.28
Oxilab Plugins /wp-admin/admin.php?page=shortcode-addons-plugins1,1532.1430.75100.47
Font Manager /wp-admin/admin.php?page=shortcode-addons-font1,3622.3941.51201.65
Addons Support /wp-admin/admin.php?page=shortcode-addons-support1,5759.31299.02141.29
Settings /wp-admin/admin.php?page=shortcode-addons-settings1,3252.1932.0045.44
Elements /wp-admin/admin.php?page=shortcode-addons3,3942.0335.98181.85
Import /wp-admin/admin.php?page=shortcode-addons-import1,0932.1327.5150.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie tables were found after uninstall: 3 tables
    • wp_oxi_div_import
    • wp_oxi_div_style
    • wp_oxi_div_list
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • theysaidso_admin_options
    • widget_shortcode_addons_widget
    • db_upgraded
    • SA_ADDONS_PLUGIN_VERSION
    • widget_recent-comments
    • shortcode_addons_activation_date
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'SHORTCODE_ADDONS\\Core\\Console' not found in wp-content/plugins/shortcode-addons/Layouts/Collection.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'SHORTCODE_ADDONS\\Core\\Console' not found in wp-content/plugins/shortcode-addons/Layouts/GoogleFont.php:13
    • > PHP Fatal error
      Trait 'SHORTCODE_ADDONS\\Helper\\Admin_Scripts' not found in wp-content/plugins/shortcode-addons/Layouts/Settings.php on line 10
    • > PHP Fatal error
      Trait 'SHORTCODE_ADDONS\\Helper\\Admin_Scripts' not found in wp-content/plugins/shortcode-addons/Layouts/Plugins.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'SHORTCODE_ADDONS\\Helper\\Database' not found in wp-content/plugins/shortcode-addons/Core/Elements_Frontend.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'SHORTCODE_ADDONS\\Helper\\Database' not found in wp-content/plugins/shortcode-addons/Core/Console.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/shortcode-addons/Includes/Widget.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'SHORTCODE_ADDONS\\Helper\\Database' not found in wp-content/plugins/shortcode-addons/Layouts/Shortcode.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'SHORTCODE_ADDONS\\Core\\Console' not found in wp-content/plugins/shortcode-addons/Layouts/ClearOlderFile.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: siteorgin, addons, visual composer, shortcode, divi...

shortcode-addons/index.php 85% from 13 tests

The primary PHP file in "Shortcode Addons- with Visual Composer, Divi, Beaver Builder and Elementor Extension" version 3.2.5 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("shortcode-addons.php" instead of "index.php")
  • Plugin Name: Keep the plugin name shorter than 70 characters (currently 84 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin38,905 lines of code in 75 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript251,04688511,438
CSS147829410,234
SVG30128,889
PHP319111,6936,424
JSON2001,920

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity26.07
▷ Minimum class complexity1.00
▷ Maximum class complexity358.00
Average method complexity3.69
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces8
Interfaces0
Traits7
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
Methods261
▷ Static methods41.53%
▷ Public methods26099.62%
▷ Protected methods00.00%
▷ Private methods10.38%
Functions25
▷ Named functions1768.00%
▷ Anonymous functions832.00%
Constants63
▷ Global constants914.29%
▷ Class constants5485.71%
▷ Public constants54100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/backend/css/icon-close-black.png1.08KB0.26KB▼ 75.88%
assets/backend/js/img/trans_bg.png0.08KB0.09KB0.00%
image/logo.png18.31KB7.34KB▼ 59.92%
assets/backend/css/icon-close-white.png1.07KB0.26KB▼ 75.82%
image/sa-logo.png4.61KB2.39KB▼ 48.18%