84% shortcodes-for-rumble

Code Review | Shortcodes for Rumble

WordPress plugin Shortcodes for Rumble scored84%from 54 tests.

About plugin

  • Plugin page: shortcodes-for-ru...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.2-5.8.2
  • WordPress version: 6.3.1
  • First release: Dec 8, 2021
  • Latest release: Dec 18, 2021
  • Number of updates: 24
  • Update frequency: every 0.4 days
  • Top authors: WMEric (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /564 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Shortcodes for Rumble
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.71 ▲4.96
Dashboard /wp-admin3.31 ▼0.0451.21 ▼11.86
Posts /wp-admin/edit.php3.36 ▲0.0049.13 ▼1.39
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.64 ▼45.91
Media Library /wp-admin/upload.php3.23 ▲0.0038.16 ▼0.88

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Shortcodes for Rumble: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.18 ▼1.201.86 ▼0.3137.84 ▼6.10
Dashboard /wp-admin2,209 ▲215.88 ▲0.7798.47 ▼12.4338.57 ▼5.74
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0239.95 ▼1.5336.42 ▲0.84
Add New Post /wp-admin/post-new.php1,514 ▼717.84 ▼5.37726.49 ▲82.7055.78 ▲8.74
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0993.26 ▼19.1946.38 ▼1.62

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/shortcodes-for-rumble/shortcodes-rumble.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were 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
4 plugin tags: responsive videos, rumble, wordpress, video embed

shortcodes-for-rumble/shortcodes-rumble.php 85% from 13 tests

The entry point to "Shortcodes for Rumble" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 157 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("shortcodes-for-rumble.php" instead of "shortcodes-rumble.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
Success! There were no dangerous files found in this plugin52 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1232652

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.35MB with 0.24MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshots/screenshot-2.png34.23KB10.74KB▼ 68.64%
screenshots/screenshot-1.png326.87KB108.80KB▼ 66.72%