94% dynamic-shortcode

Code Review | Dynamic Shortcode

WordPress plugin Dynamic Shortcode scored 94% from 54 tests.

About plugin

  • Plugin page: dynamic-shortcode
  • Plugin version: 1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.4
  • WordPress version: 5.8.1
  • First release: Mar 11, 2020
  • Latest release: Apr 24, 2020
  • Number of updates: 9
  • Update frequency: every 5.0 days
  • Top authors: web2webs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 380 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Dynamic Shortcode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.96 ▲8.26
Dashboard /wp-admin3.07 ▲0.0153.58 ▲3.63
Posts /wp-admin/edit.php3.12 ▲0.0148.29 ▲0.03
Add New Post /wp-admin/post-new.php5.42 ▼0.0195.63 ▼570.63
Media Library /wp-admin/upload.php3.01 ▲0.0134.88 ▼4.62

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dynamic Shortcode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲13115.93 ▲0.3211.29 ▼0.5050.59 ▼0.47
Dashboard /wp-admin2,970 ▲335.91 ▼0.06151.93 ▼8.81115.03 ▲5.52
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0277.06 ▲2.9894.01 ▲3.29
Add New Post /wp-admin/post-new.php1,615 ▼1,96220.84 ▲6.04309.31 ▼196.21109.28 ▼4.38
Media Library /wp-admin/upload.php1,807 ▼05.04 ▲0.06156.60 ▼13.22131.31 ▲20.44

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 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 no errors were found, this is by no means an exhaustive test

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 fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/dynamic-shortcode/dynamic-shortcode.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: shortcodes, nested, shortcode inside shortcode, nested shortcode, dynamic shortcode

dynamic-shortcode/dynamic-shortcode.php Passed 13 tests

Analyzing the main PHP file in "Dynamic Shortcode" version 1.0
133 characters long description:
A small plugin which allows you to use shortcodes as the attribute of other shortcode, shortcode inside shortcode, dynamic shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin