84% nested-shortcodes

Code Review | Nested Shortcodes by Outerbridge

WordPress plugin Nested Shortcodes by Outerbridge scored84%from 54 tests.

About plugin

  • Plugin page: nested-shortcodes
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Aug 31, 2011
  • Latest release: Sep 1, 2022
  • Number of updates: 31
  • Update frequency: every 129.7 days
  • Top authors: outerbridge (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

2,000+ active /17,761 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Nested Shortcodes by Outerbridge
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.29 ▼1.76
Dashboard /wp-admin3.31 ▲0.0052.90 ▲0.93
Posts /wp-admin/edit.php3.36 ▲0.0051.69 ▼3.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.82 ▼11.13
Media Library /wp-admin/upload.php3.23 ▲0.0041.96 ▼4.59

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Nested Shortcodes by Outerbridge
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.21 ▼1.221.89 ▼0.1446.25 ▲0.17
Dashboard /wp-admin2,221 ▲184.83 ▼0.98102.83 ▼14.4040.10 ▼9.59
Posts /wp-admin/edit.php2,103 ▼02.17 ▲0.1238.76 ▼7.4534.75 ▼5.31
Add New Post /wp-admin/post-new.php1,545 ▼023.10 ▲2.25635.08 ▼188.2256.09 ▼18.27
Media Library /wp-admin/upload.php1,397 ▼34.23 ▲0.01102.62 ▼49.1745.66 ▼20.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/nested-shortcodes/outerbridge-nested-shortcodes.php:33

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 93% from 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
5 plugin tags: do_shortcode, shortcodes, nested, the_content, text_widget

nested-shortcodes/outerbridge-nested-shortcodes.php 85% from 13 tests

The main PHP file in "Nested Shortcodes by Outerbridge" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("nested-shortcodes.php" instead of "outerbridge-nested-shortcodes.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 425 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected4 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13274

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 are no PNG files in this plugin