78% builder-shortcode-extras

Code Review | Builder Shortcode Extras – WordPress Shortcodes Collection to Save You Time

WordPress plugin Builder Shortcode Extras – WordPress Shortcodes Collection to Save You Time scored78%from 54 tests.

About plugin

  • Plugin page: builder-shortcode...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.3
  • WordPress version: 6.3.1
  • First release: Sep 10, 2019
  • Latest release: Nov 13, 2019
  • Number of updates: 4
  • Update frequency: every 16.0 days
  • Top authors: daveshine (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active /5,012 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.44MB] [CPU: ▼3.64ms] Passed 4 tests

Server-side resources used by Builder Shortcode Extras – WordPress Shortcodes Collection to Save You Time
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3141.82 ▲1.20
Dashboard /wp-admin3.83 ▲0.4948.76 ▼7.32
Posts /wp-admin/edit.php3.88 ▲0.5345.03 ▼1.15
Add New Post /wp-admin/post-new.php6.37 ▲0.4882.57 ▼7.29
Media Library /wp-admin/upload.php3.69 ▲0.4736.95 ▲4.29
Blocks /wp-admin/edit.php?post_type=wp_block3.7438.40
Add New /wp-admin/post-new.php?post_type=wp_block6.3681.52

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
bse-plugin-old-setup
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Builder Shortcode Extras – WordPress Shortcodes Collection to Save You Time
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲10813.61 ▼0.761.88 ▲0.1644.11 ▼1.04
Dashboard /wp-admin2,235 ▲474.86 ▼1.00101.57 ▲0.1736.01 ▼4.35
Posts /wp-admin/edit.php2,116 ▲272.01 ▼0.0134.79 ▼3.1233.52 ▼1.16
Add New Post /wp-admin/post-new.php1,565 ▲3218.28 ▼4.82602.59 ▼28.9052.56 ▼5.29
Media Library /wp-admin/upload.php1,420 ▲324.23 ▲0.0696.08 ▼4.2940.58 ▼3.77
Blocks /wp-admin/edit.php?post_type=wp_block1,1546.66148.3227.41
Add New /wp-admin/post-new.php?post_type=wp_block1,53916.95753.8737.46

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
  • 18× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/builder-shortcode-extras/includes/admin/classes/ddwlib-plir/ddwlib-plugin-installer-recommendations.php
    • > /wp-content/plugins/builder-shortcode-extras/includes/functions-conditionals.php
    • > /wp-content/plugins/builder-shortcode-extras/includes/load-integrations.php
    • > /wp-content/plugins/builder-shortcode-extras/includes/shortcodes/info.php
    • > /wp-content/plugins/builder-shortcode-extras/includes/shortcodes/post.php
    • > /wp-content/plugins/builder-shortcode-extras/includes/shortcodes/integrations.php
    • > /wp-content/plugins/builder-shortcode-extras/builder-shortcode-extras.php
    • > /wp-content/plugins/builder-shortcode-extras/includes/functions-global.php
    • > /wp-content/plugins/builder-shortcode-extras/includes/shortcodes/elementor.php
    • > /wp-content/plugins/builder-shortcode-extras/includes/shortcodes/version.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/builder-shortcode-extras/includes/admin/classes/astra-notices/class-astra-notices.php:73

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 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

builder-shortcode-extras/builder-shortcode-extras.php Passed 13 tests

The principal PHP file in "Builder Shortcode Extras – WordPress Shortcodes Collection to Save You Time" v. 1.0.0 is loaded by WordPress automatically on each request
92 characters long description:
A collection of totally useful extra Shortcodes to make the life of Site Builders more easy.

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
There were no executable files found in this plugin3,626 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP201,1381,8522,670
PO File2138182462
Markdown31520243
CSS34816176
JavaScript1172453
JSON10022

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity33.00
▷ Minimum class complexity29.00
▷ Maximum class complexity37.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods31
▷ Static methods2477.42%
▷ Public methods2890.32%
▷ Protected methods00.00%
▷ Private methods39.68%
Functions85
▷ Named functions85100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/admin/classes/ddwlib-plir/deckerweb-plugins-logo.png15.80KB6.20KB▼ 60.78%
assets/images/bse-icon.png66.66KB15.55KB▼ 76.68%