77% magic-shortcodes-builder-lite

Code Review | Magic Shortcodes

WordPress plugin Magic Shortcodes scored 77% from 54 tests.

About plugin

  • Plugin page: magic-shortcodes-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Apr 1, 2016
  • Latest release: Jan 24, 2022
  • Number of updates: 10
  • Update frequency: every 212.4 days
  • Top authors: codetides (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,809 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.43ms] Passed 4 tests

A check of server-side resources used by Magic Shortcodes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0432.77 ▼2.24
Dashboard /wp-admin3.34 ▲0.0342.86 ▼3.62
Posts /wp-admin/edit.php3.39 ▲0.0351.53 ▲1.73
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.57 ▼8.69
Media Library /wp-admin/upload.php3.26 ▲0.0332.42 ▲0.85
All Magic Shortcodes /wp-admin/edit.php?post_type=ct_ms3.3033.20
Add New /wp-admin/post-new.php?post_type=ct_ms3.3241.60

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Magic Shortcodes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲12213.65 ▼0.984.77 ▲3.0637.59 ▼3.06
Dashboard /wp-admin2,234 ▲255.86 ▼0.00112.06 ▲14.6144.11 ▲5.87
Posts /wp-admin/edit.php2,117 ▲312.06 ▲0.0240.72 ▲1.4236.31 ▲0.77
Add New Post /wp-admin/post-new.php1,552 ▲1923.24 ▲0.05675.59 ▼11.5657.93 ▲5.87
Media Library /wp-admin/upload.php1,410 ▲224.23 ▼0.1495.95 ▼8.7140.41 ▼4.20
All Magic Shortcodes /wp-admin/edit.php?post_type=ct_ms1,0892.0035.8229.55
Add New /wp-admin/post-new.php?post_type=ct_ms1,4642.5753.1951.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • 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
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/magic-shortcodes-builder-lite/public/partials/magic-shortcodes-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/magic-shortcodes-builder-lite/admin/views/magic-shortcodes-admin-display.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === magic-shortcodes-builder-lite === )
The official readme.txt is a good inspiration

magic-shortcodes-builder-lite/magic-shortcodes.php 77% from 13 tests

The main PHP file in "Magic Shortcodes" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("magic-shortcodes-builder-lite.php" instead of "magic-shortcodes.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 351 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected379 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13149547295
CSS21878
JavaScript24546

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity2.57
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods2678.79%
▷ Protected methods00.00%
▷ Private methods721.21%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
PNG images were not found in this plugin