89% dynamic-shortcode-widget-for-elementor

Code Review | Dynamic Shortcode Widget for Elementor

WordPress plugin Dynamic Shortcode Widget for Elementor scored89%from 54 tests.

About plugin

  • Plugin page: dynamic-shortcode...
  • Plugin version: 0.3.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 26, 2022
  • Latest release: Oct 26, 2023
  • Number of updates: 16
  • Update frequency: every 28.6 days
  • Top authors: louisho5 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,692 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Dynamic Shortcode Widget for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.09 ▼6.17
Dashboard /wp-admin3.32 ▼0.0343.02 ▼17.86
Posts /wp-admin/edit.php3.37 ▲0.0146.65 ▼0.07
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.20 ▼14.43
Media Library /wp-admin/upload.php3.24 ▲0.0133.70 ▼2.20

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Dynamic Shortcode Widget for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.34 ▼0.011.69 ▼0.1037.07 ▼7.73
Dashboard /wp-admin2,198 ▲185.62 ▼0.0484.20 ▼3.1535.70 ▼8.43
Posts /wp-admin/edit.php2,097 ▼31.97 ▼0.0235.75 ▼1.7232.79 ▼5.27
Add New Post /wp-admin/post-new.php1,526 ▼023.08 ▼0.03645.79 ▼25.4949.15 ▼4.72
Media Library /wp-admin/upload.php1,397 ▼34.20 ▲0.04103.64 ▲9.8145.02 ▲2.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
Please take inspiration from this readme.txt

dynamic-shortcode-widget-for-elementor/plugin.php 92% from 13 tests

The principal PHP file in "Dynamic Shortcode Widget for Elementor" v. 0.3.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dynamic-shortcode-widget-for-elementor.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin188 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23623188

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity2.50
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods12
▷ Static methods18.33%
▷ Public methods1083.33%
▷ Protected methods216.67%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin