83% boombox-shortcode

Code Review | Boombox Shortcode Plugin

WordPress plugin Boombox Shortcode Plugin scored83%from 54 tests.

About plugin

  • Plugin page: boombox-shortcode
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1.5
  • WordPress version: 6.3.1
  • First release: Jul 15, 2015
  • Latest release: Jul 18, 2015
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: qzzr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,337 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.74ms] Passed 4 tests

An overview of server-side resources used by Boombox Shortcode Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.52 ▼0.73
Dashboard /wp-admin3.31 ▲0.0148.49 ▼2.82
Posts /wp-admin/edit.php3.36 ▲0.0147.66 ▼6.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.90 ▼12.48
Media Library /wp-admin/upload.php3.23 ▲0.0135.41 ▲2.27

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Boombox Shortcode Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.46 ▲0.082.12 ▼0.1446.92 ▲7.56
Dashboard /wp-admin2,209 ▲244.85 ▼0.03109.92 ▼2.5440.86 ▼2.33
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.0637.18 ▼3.9233.53 ▼0.17
Add New Post /wp-admin/post-new.php1,542 ▲1818.00 ▼3.17631.33 ▲0.4048.90 ▼15.89
Media Library /wp-admin/upload.php1,391 ▲94.22 ▲0.04103.55 ▲5.3450.62 ▲7.01

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/boombox-shortcode/boombox.php:54

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Please fix the following attributes:
  • Tags: There are too many tags (13 tag instead of maximum 10)
  • Plugin Name: You should set the name of your plugin on the first line ( === boombox-shortcode === )
The official readme.txt is a good inspiration

boombox-shortcode/boombox.php 92% from 13 tests

The primary PHP file in "Boombox Shortcode Plugin" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("boombox-shortcode.php" instead of "boombox.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin32 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP116832

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin