90% jonradio-shortcodes-anywhere-or-everywhere

Code Review | Shortcodes Anywhere or Everywhere

WordPress plugin Shortcodes Anywhere or Everywhere scored90%from 54 tests.

About plugin

  • Plugin page: jonradio-shortcod...
  • Plugin version: 1.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.8
  • WordPress version: 6.3.1
  • First release: Apr 11, 2014
  • Latest release: Aug 30, 2023
  • Number of updates: 41
  • Update frequency: every 83.9 days
  • Top authors: adiant (56.1%)dgewirtz (46.34%)

Code review

54 tests

User reviews

15 reviews

Install metrics

2,000+ active /30,368 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼1.69ms] Passed 4 tests

An overview of server-side resources used by Shortcodes Anywhere or Everywhere
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.90 ▲1.34
Dashboard /wp-admin3.37 ▲0.0743.91 ▼6.57
Posts /wp-admin/edit.php3.43 ▲0.0746.62 ▲1.63
Add New Post /wp-admin/post-new.php5.96 ▲0.0790.50 ▼3.17
Media Library /wp-admin/upload.php3.30 ▲0.0738.40 ▲2.95
Shortcodes Anywhere or Everywhere /wp-admin/options-general.php?page=jr_saoe_settings3.2629.18

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
jr_saoe_settings
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Shortcodes Anywhere or Everywhere
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.27 ▼0.321.75 ▲0.2543.39 ▲1.83
Dashboard /wp-admin2,215 ▲355.59 ▼0.0690.07 ▲4.6745.02 ▲3.16
Posts /wp-admin/edit.php2,120 ▲231.95 ▼0.0740.09 ▲2.9041.09 ▲1.40
Add New Post /wp-admin/post-new.php1,542 ▲1623.93 ▲0.20672.00 ▼11.8858.36 ▲0.86
Media Library /wp-admin/upload.php1,420 ▲204.19 ▼0.01112.29 ▲9.1454.92 ▲12.09
Shortcodes Anywhere or Everywhere /wp-admin/options-general.php?page=jr_saoe_settings1,1212.0623.3835.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: shortcode, custom

jonradio-shortcodes-anywhere-or-everywhere/jonradio-shortcodes-anywhere-or-everywhere.php Passed 13 tests

The main PHP script in "Shortcodes Anywhere or Everywhere" version 1.4.2 is automatically included on every request by WordPress
76 characters long description:
Allows Shortcodes to be used nearly everywhere, not just in posts and pages.

Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected638 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP556174638

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions19
▷ Named functions19100.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 images were found in this plugin