74% shortcode-revolution

Code Review | Shortcode Revolution

WordPress plugin Shortcode Revolution scored74%from 54 tests.

About plugin

  • Plugin page: shortcode-revolution
  • Plugin version: 0.4.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.2
  • WordPress version: 6.3.1
  • First release: Dec 3, 2021
  • Latest release: Apr 12, 2023
  • Number of updates: 21
  • Update frequency: every 23.6 days
  • Top authors: prasunsen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /629 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼1.99ms] Passed 4 tests

Analyzing server-side resources used by Shortcode Revolution
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2039.36 ▼2.15
Dashboard /wp-admin3.52 ▲0.2149.73 ▼2.19
Posts /wp-admin/edit.php3.63 ▲0.2765.29 ▲9.96
Add New Post /wp-admin/post-new.php6.10 ▲0.2188.28 ▼11.02
Media Library /wp-admin/upload.php3.44 ▲0.2141.71 ▲7.40
Custom Shortcodes /wp-admin/admin.php?page=shortcode_revolution_custom3.4740.09
Settings /wp-admin/admin.php?page=shortcode_revolution_settings3.4135.07
Get Shortcodes /wp-admin/admin.php?page=shortcode_revolution3.7932.10
Help /wp-admin/admin.php?page=shortcode_revolution_help3.4233.12

Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Just a few items left to fix
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/shortcode-revolution/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 34 new files
Database: 1 new table, 7 new options
New tables
wp_shortcodes
New WordPress options
widget_recent-posts
widget_theysaidso_widget
srevo_version
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Shortcode Revolution
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲16813.75 ▼0.674.97 ▲3.2642.56 ▲0.75
Dashboard /wp-admin2,254 ▲484.87 ▼1.01107.06 ▲5.5239.13 ▼1.38
Posts /wp-admin/edit.php2,136 ▲362.04 ▲0.0540.83 ▲2.0737.60 ▲3.43
Add New Post /wp-admin/post-new.php1,567 ▲3623.46 ▲0.17690.61 ▼13.9656.17 ▼2.65
Media Library /wp-admin/upload.php1,436 ▲364.16 ▼0.10113.13 ▲0.7949.88 ▼0.13
Custom Shortcodes /wp-admin/admin.php?page=shortcode_revolution_custom1,5416.52127.2853.97
Settings /wp-admin/admin.php?page=shortcode_revolution_settings8592.0222.1026.37
Get Shortcodes /wp-admin/admin.php?page=shortcode_revolution1,2711.8723.9034.13
Help /wp-admin/admin.php?page=shortcode_revolution_help9482.2923.0630.42

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_shortcodes
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • srevo_version
    • 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 shallow check 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/shortcode-revolution/views/help.html.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/shortcode-revolution/shortcode-revolution.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/shortcode-revolution/views/settings.html.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/shortcode-revolution/views/generator.html.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: buttons, carousel, user profile, grid, tabs...

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

The main PHP file in "Shortcode Revolution" ver. 0.4.3 adds more information about the plugin and also serves as the entry point for this plugin
103 characters long description:
Shortcode everything. The low code / no code tool for WordPress developers, designers, and power users.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,115 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP264501641,646
CSS44867467
JavaScript2182

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity15.92
▷ Minimum class complexity2.00
▷ Maximum class complexity73.00
Average method complexity8.08
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods25
▷ Static methods25100.00%
▷ Public methods2496.00%
▷ Protected methods14.00%
▷ Private methods00.00%
Functions10
▷ Named functions880.00%
▷ Anonymous functions220.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected