84% shortcodes-anywhere

Code Review | Shortcodes AnyWhere

WordPress plugin Shortcodes AnyWhere scored84%from 54 tests.

About plugin

  • Plugin page: shortcodes-anywhere
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Oct 31, 2013
  • Latest release: Apr 2, 2015
  • Number of updates: 12
  • Update frequency: every 43.3 days
  • Top authors: happyplugins (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /8,331 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Shortcodes AnyWhere
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.28 ▲1.08
Dashboard /wp-admin3.31 ▼0.0345.68 ▼19.67
Posts /wp-admin/edit.php3.36 ▲0.0148.96 ▲5.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.84 ▼17.19
Media Library /wp-admin/upload.php3.23 ▲0.0132.44 ▼1.03

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Shortcodes AnyWhere
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.231.98 ▼0.0446.02 ▲3.18
Dashboard /wp-admin2,206 ▲185.88 ▲0.06104.74 ▼2.0042.16 ▼1.95
Posts /wp-admin/edit.php2,089 ▲31.98 ▼0.0740.12 ▲4.0433.07 ▼2.30
Add New Post /wp-admin/post-new.php1,545 ▲3118.32 ▲0.83608.85 ▼106.4752.29 ▼8.51
Media Library /wp-admin/upload.php1,388 ▲34.21 ▲0.0299.03 ▼5.3940.14 ▼6.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/shortcodes-anywhere/core/shortcodeEverywhere.class.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: shortcode in comment, shortcodes, shortcode widget, shortcodes in widget

shortcodes-anywhere/shortcodes-everywhere.php 92% from 13 tests

"Shortcodes AnyWhere" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("shortcodes-anywhere.php" instead of "shortcodes-everywhere.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin19 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2201219

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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