84% azurecurve-shortcodes-in-widgets

Code Review | azurecurve Shortcodes in Widgets

WordPress plugin azurecurve Shortcodes in Widgets scored 84% from 54 tests.

About plugin

  • Plugin page: azurecurve-shortc...
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.0.0
  • WordPress version: 6.3.1
  • First release: Jun 13, 2015
  • Latest release: Dec 6, 2018
  • Number of updates: 12
  • Update frequency: every 106.9 days
  • Top authors: azurecurve (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 2,756 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.72ms] Passed 4 tests

An overview of server-side resources used by azurecurve Shortcodes in Widgets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.62 ▼1.44
Dashboard /wp-admin3.34 ▲0.0446.04 ▼3.80
Posts /wp-admin/edit.php3.39 ▲0.0444.50 ▼8.89
Add New Post /wp-admin/post-new.php5.92 ▲0.0489.19 ▼4.76
Media Library /wp-admin/upload.php3.27 ▲0.0435.34 ▲1.62
Plugins /wp-admin/admin.php?page=azc-plugin-menus3.2332.10
Shortcodes in Widgets /wp-admin/admin.php?page=azc-siw3.2330.38

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

azurecurve Shortcodes in Widgets: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲9313.29 ▼1.091.90 ▼0.2447.66 ▼1.60
Dashboard /wp-admin2,234 ▲794.85 ▼0.8697.93 ▼17.0071.64 ▲27.31
Posts /wp-admin/edit.php2,120 ▲312.00 ▼0.0334.39 ▼2.2132.29 ▼4.16
Add New Post /wp-admin/post-new.php1,546 ▲2723.26 ▲0.11730.55 ▲14.9652.60 ▼10.61
Media Library /wp-admin/upload.php1,416 ▲314.23 ▲0.0493.67 ▼13.5265.07 ▲16.01
Plugins /wp-admin/admin.php?page=azc-plugin-menus8532.0223.3728.18
Shortcodes in Widgets /wp-admin/admin.php?page=azc-siw8142.0723.2926.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-shortcodes-in-widgets/includes/menu.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-shortcodes-in-widgets/includes/menu.php:29

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: widgets, shortcodes, shortcode, widget

azurecurve-shortcodes-in-widgets/azurecurve-shortcodes-in-widgets.php Passed 13 tests

The principal PHP file in "azurecurve Shortcodes in Widgets" v. 2.0.2 is loaded by WordPress automatically on each request
40 characters long description:
Allows shortcodes to be used in widgets.

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
Everything looks great! No dangerous files found in this plugin245 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22726229
CSS10216

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.74
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%
Functions5
▷ Named functions5100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/Favicon-16x16.png0.40KB0.34KB▼ 14.81%