94% rescue-shortcodes

Code Review | Rescue Shortcodes

WordPress plugin Rescue Shortcodes scored 94% from 54 tests.

About plugin

  • Plugin page: rescue-shortcodes
  • Plugin version: 2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1.1
  • WordPress version: 5.8.1
  • First release: Apr 1, 2015
  • Latest release: Apr 18, 2019
  • Number of updates: 68
  • Update frequency: every 21.8 days
  • Top authors: rescuethemes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

3,000+ active / 51,324 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.10MB] [CPU: ▼142.92ms] Passed 4 tests

This is a short check of server-side resources used by Rescue Shortcodes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.95 ▲0.1136.43 ▲1.43
Dashboard /wp-admin3.16 ▲0.1048.94 ▲4.59
Posts /wp-admin/edit.php3.24 ▲0.1447.72 ▲1.54
Add New Post /wp-admin/post-new.php5.51 ▲0.0892.31 ▼571.17
Media Library /wp-admin/upload.php3.10 ▲0.1035.23 ▼3.47

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Rescue Shortcodes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,172 ▲57616.25 ▲0.6411.88 ▲1.3348.95 ▲0.93
Dashboard /wp-admin3,331 ▲3976.23 ▲0.21143.62 ▼15.24100.59 ▲1.07
Posts /wp-admin/edit.php3,100 ▲3612.76 ▲0.0465.37 ▼2.5792.30 ▲6.41
Add New Post /wp-admin/post-new.php2,301 ▲80315.87 ▼2.93400.45 ▼16.1399.75 ▼8.29
Media Library /wp-admin/upload.php2,168 ▲3615.10 ▲0.08159.82 ▲0.00112.60 ▼4.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/rescue-shortcodes/includes/shortcode-functions.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rescue-shortcodes/includes/shortcodes-button.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rescue-shortcodes/includes/scripts.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: buttons, spacing, highlight, columns, animations...

rescue-shortcodes/rescue-shortcodes.php Passed 13 tests

The primary PHP file in "Rescue Shortcodes" version 2.5 is used by WordPress to initiate all plugin functionality
32 characters long description:
A lightweight shortcodes plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected3,764 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP4111118512
CSS32750337
JavaScript107730244

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected