84% podbean-shortcode

Code Review | Podbean Shortcode

WordPress plugin Podbean Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: podbean-shortcode
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-4.7.1
  • WordPress version: 6.3.1
  • First release: Mar 3, 2017
  • Latest release: Jun 2, 2017
  • Number of updates: 5
  • Update frequency: every 18.0 days
  • Top authors: podbean (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /12,756 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼11.08ms] Passed 4 tests

An overview of server-side resources used by Podbean Shortcode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.13 ▼2.01
Dashboard /wp-admin3.33 ▼0.0142.94 ▼14.18
Posts /wp-admin/edit.php3.38 ▲0.0343.06 ▼4.01
Add New Post /wp-admin/post-new.php5.91 ▲0.0378.06 ▼24.11
Media Library /wp-admin/upload.php3.26 ▲0.0336.07 ▲2.76

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Podbean Shortcode: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.72 ▲0.141.57 ▼0.1441.74 ▼0.29
Dashboard /wp-admin2,195 ▲155.51 ▼0.1181.86 ▼3.2636.87 ▼8.23
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0533.98 ▼4.4533.56 ▼1.72
Add New Post /wp-admin/post-new.php1,528 ▼023.55 ▲0.52646.53 ▲2.8053.43 ▲2.88
Media Library /wp-admin/upload.php1,403 ▼04.20 ▲0.0197.15 ▼0.6541.96 ▼3.98

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/podbean-shortcode/podbean_shortcode.php:228

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: player, podbean, podcast, sound, music...

podbean-shortcode/podbean_shortcode.php 92% from 13 tests

The primary PHP file in "Podbean Shortcode" version 1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("podbean-shortcode.php" instead of "podbean_shortcode.php")

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
No dangerous file extensions were detected176 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14027163
JSON10013

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin