10% amazing-shortcodes-for-visual-composer

Code Review | Amazing Shortcodes for Visual Composer

WordPress plugin Amazing Shortcodes for Visual Composer scored10%from 54 tests.

About plugin

  • Plugin page: amazing-shortcode...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Jan 22, 2017
  • Latest release: Mar 17, 2017
  • Number of updates: 16
  • Update frequency: every 3.3 days
  • Top authors: themebon (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,567 total downloads


Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/amazing-shortcodes-for-visual-composer/shortcodes-for-visual-composer.php+57
    Methods with the same name as their class will not be constructors in a future version of PHP; Amazing_Shortcodes_VC has a deprecated constructor

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

Analyzing server-side resources used by Amazing Shortcodes for Visual Composer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.61 ▼3.18
Dashboard /wp-admin3.31 ▲0.0044.19 ▼5.55
Posts /wp-admin/edit.php3.36 ▲0.0047.32 ▼5.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.31 ▼13.98
Media Library /wp-admin/upload.php3.23 ▲0.0034.43 ▼0.17

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

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

Browser metrics Passed 4 tests

Amazing Shortcodes for Visual Composer: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.21 ▼1.101.55 ▼0.2539.18 ▼4.86
Dashboard /wp-admin2,209 ▲274.86 ▼1.05110.06 ▲8.1243.10 ▲0.30
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0239.95 ▲0.0436.04 ▲1.50
Add New Post /wp-admin/post-new.php1,514 ▼2317.46 ▼0.91596.68 ▼30.0449.92 ▼11.13
Media Library /wp-admin/upload.php1,388 ▲34.20 ▼0.0093.53 ▼5.4041.46 ▼2.63

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/amazing-shortcodes-for-visual-composer/shortcodes-for-visual-composer.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_add_shortcode_param() in wp-content/plugins/amazing-shortcodes-for-visual-composer/admin/params/slider/slider-params.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_add_shortcode_param() in wp-content/plugins/amazing-shortcodes-for-visual-composer/admin/params/slider/slider-params.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot 1), #2 (screenshot 2), #3 (screenshot 3), #4 (screenshot 4), #5 (screenshot 5), #6 (screenshot 6), #7 (screenshot 7)
  • Tags: You are using too many tags: 51 tag instead of maximum 10
The official readme.txt is a good inspiration

amazing-shortcodes-for-visual-composer/shortcodes-for-visual-composer.php 85% from 13 tests

"Amazing Shortcodes for Visual Composer" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("amazing-shortcodes-for-visual-composer.php" instead of "shortcodes-for-visual-composer.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected15,390 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 177)
Cyclomatic complexity
Average complexity per logical line of code0.81
Average class complexity28.89
▷ Minimum class complexity3.00
▷ Maximum class complexity177.00
Average method complexity26.10
▷ Minimum method complexity3.00
▷ Maximum method complexity177.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/servicebox_icon.png0.61KB0.46KB▼ 24.20%
admin/img/beforeafter_icon.png1.36KB0.53KB▼ 61.42%
admin/img/hover_effects_icon.png2.06KB1.21KB▼ 41.43%
admin/img/pronobox_icon.png0.42KB0.30KB▼ 28.37%
admin/img/flipbox_icon.png1.67KB1.01KB▼ 39.52%