90% shortcode-support-for-elementor-templates

Code Review | Shortcode For Elementor Templates

WordPress plugin Shortcode For Elementor Templates scored90%from 54 tests.

About plugin

  • Plugin page: shortcode-support...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.0
  • WordPress version: 6.3.1
  • First release: Apr 25, 2023
  • Latest release: Apr 25, 2023
  • Number of updates: 10
  • Update frequency: every 0.4 days
  • Top authors: phppoet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /662 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.22ms] Passed 4 tests

This is a short check of server-side resources used by Shortcode For Elementor Templates
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.92 ▼3.51
Dashboard /wp-admin3.32 ▲0.0146.23 ▼7.76
Posts /wp-admin/edit.php3.37 ▲0.0149.13 ▼3.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.76 ▼6.45
Media Library /wp-admin/upload.php3.24 ▲0.0136.22 ▲2.23

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Shortcode For Elementor Templates: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.69 ▼1.061.89 ▼0.0143.05 ▼1.38
Dashboard /wp-admin2,206 ▲155.78 ▲0.96103.44 ▲3.0738.35 ▼3.11
Posts /wp-admin/edit.php2,089 ▼32.04 ▼0.0939.56 ▼4.5634.76 ▼3.61
Add New Post /wp-admin/post-new.php1,533 ▼323.12 ▲0.34682.02 ▲49.1776.30 ▲21.17
Media Library /wp-admin/upload.php1,388 ▼04.27 ▲0.1193.68 ▼11.0142.50 ▲0.46

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #4 (Shortcode For Elementor Templates Customizer), #5 (Shortcode For Elementor Templates Free), #6 (Shortcode For Elementor Templates Frontend), #7 (8.)
The official readme.txt is a good inspiration

shortcode-support-for-elementor-templates/shortcode-support-for-elementor-templates.php Passed 13 tests

The main PHP file in "Shortcode For Elementor Templates" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
122 characters long description:
Include any elementor template using shortcode. It will add shortcode column to existing elementor template admin columns.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin56 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1171528
PO File15628

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
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
There are no PNG files in this plugin