84% shortcode-magic

Code Review | Shortcode Magic

WordPress plugin Shortcode Magic scored84%from 54 tests.

About plugin

  • Plugin page: shortcode-magic
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-3.8
  • WordPress version: 6.3.1
  • First release: Jan 8, 2014
  • Latest release: Feb 2, 2014
  • Number of updates: 6
  • Update frequency: every 4.7 days
  • Top authors: Friscopolice (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,024 total downloads

Benchmarks

Plugin footprint 83% from 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.03MB] [CPU: ▼9.31ms] Passed 4 tests

An overview of server-side resources used by Shortcode Magic
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.21 ▼5.22
Dashboard /wp-admin3.34 ▲0.0442.72 ▼10.52
Posts /wp-admin/edit.php3.39 ▲0.0344.13 ▼3.76
Add New Post /wp-admin/post-new.php5.92 ▲0.0379.60 ▼17.72
Media Library /wp-admin/upload.php3.26 ▲0.0335.87 ▲0.25
Shortcode Magic /wp-admin/edit.php?page=shortcode_magic3.2231.92

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Shortcode Magic
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.73 ▼0.061.64 ▼0.0243.92 ▼1.26
Dashboard /wp-admin2,210 ▲365.84 ▼0.01104.18 ▼13.8136.86 ▼17.23
Posts /wp-admin/edit.php2,090 ▲12.03 ▲0.0234.81 ▼2.5330.35 ▼2.13
Add New Post /wp-admin/post-new.php1,536 ▲323.31 ▲0.03659.45 ▼29.2756.92 ▼6.34
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0395.49 ▼18.5742.60 ▼6.91
Shortcode Magic /wp-admin/edit.php?page=shortcode_magic8562.0226.2830.48

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/shortcode-magic/shortcode-magic.php:205

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Some shortcodes in action.) image not found
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

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

The primary PHP file in "Shortcode Magic" version 1.5.1 is used by WordPress to initiate all plugin functionality
90 characters long description:
A plugin of quick and easy to use shortcodes, with little to no coding knowledge required.

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
Good job! No executable or dangerous file extensions detected160 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15568160

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.01
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%
Functions16
▷ Named functions16100.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 were not PNG files found in your plugin