10% podcast-box

Code Review | Podcast Box - Best Podcasting Plugin for WordPress

WordPress plugin Podcast Box - Best Podcasting Plugin for WordPress scored10%from 54 tests.

About plugin

  • Plugin page: podcast-box
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Jun 12, 2021
  • Latest release: Apr 8, 2022
  • Number of updates: 3
  • Update frequency: every 100.7 days
  • Top authors: princeahmed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,434 total downloads

Benchmarks

Plugin footprint 22% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▲5.20MB] [CPU: ▲25.70ms] 75% from 4 tests

Server-side resources used by Podcast Box - Best Podcasting Plugin for WordPress
Please fix the following
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 5.20MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /8.80 ▲5.3364.41 ▲23.59
Dashboard /wp-admin8.82 ▲5.4790.39 ▲26.84
Posts /wp-admin/edit.php8.82 ▲5.4681.86 ▲31.77
Add New Post /wp-admin/post-new.php10.44 ▲4.55121.02 ▲20.60
Media Library /wp-admin/upload.php8.82 ▲5.5978.20 ▲40.70
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius8.8268.50

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 522 new files
Database: 2 new tables, 18 new options
New tables
wp_podcast_episode_relation
wp_podcast_box_visitors
New WordPress options
widget_recent-posts
fs_accounts
db_upgraded
podcast_box_color_settings
podcast_box_display_settings
widget_recent-comments
podcast_box_player_settings
fs_active_plugins
widget_theysaidso_widget
podcast_box_general_settings
...

Browser metrics Passed 4 tests

Podcast Box - Best Podcasting Plugin for WordPress: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,539 ▲77816.32 ▲2.0519.08 ▲17.2630.73 ▼15.16
Dashboard /wp-admin2,411 ▲2376.83 ▲1.25126.41 ▲37.9045.88 ▲3.52
Posts /wp-admin/edit.php2,346 ▲2463.62 ▲1.6157.36 ▲14.9336.79 ▲0.05
Add New Post /wp-admin/post-new.php1,587 ▲6122.87 ▼0.22654.65 ▼36.7536.12 ▼19.46
Media Library /wp-admin/upload.php1,545 ▲1454.88 ▲0.7194.51 ▼8.7944.49 ▼3.68
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,2903.3445.8726.60

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/podcast-box/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_podcast_box_visitors
    • wp_podcast_episode_relation
  • Zombie WordPress options were found after uninstall: 18 options
    • can_compress_scripts
    • widget_recent-comments
    • fs_accounts
    • podcast_box_general_settings
    • fs_debug_mode
    • db_upgraded
    • podcast_box_player_settings
    • podcast_box_color_settings
    • podcast_box_image_settings
    • fs_gdpr
    • ...

Smoke tests 25% 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 0% 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/podcast-box/templates/not-found.php
  • 21× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function podcast_box_get_episode_podcast() in wp-content/plugins/podcast-box/templates/single-episode.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function podcast_box_get_episode_ids() in wp-content/plugins/podcast-box/includes/admin/views/metabox-latest-episodes.php:5
    • > PHP Notice
      Trying to get property 'ID' of non-object in wp-content/plugins/podcast-box/includes/admin/views/metabox-episode-actions.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/podcast-box/includes/admin/views/get-started/index.php:9
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/podcast-box/includes/admin/views/metabox-episode-actions.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/podcast-box/includes/admin/views/get-started/new.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/podcast-box/includes/admin/views/get-started/widget.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/podcast-box/includes/admin/views/metabox-episode-actions.php:8
    • > PHP Notice
      Trying to get property 'ID' of non-object in wp-content/plugins/podcast-box/templates/single-episode.php on line 4
    • > PHP Notice
      Undefined variable: item in wp-content/plugins/podcast-box/templates/not-found.php on line 4

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=freemius
    • > Network (severe)
    wp-content/plugins/podcast-box/assets/vendor/wp-color-picker-alpha.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt is a good inspiration

podcast-box/plugin.php 92% from 13 tests

The main PHP file in "Podcast Box - Best Podcasting Plugin for WordPress" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
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 ("podcast-box.php" instead of "plugin.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin57,393 lines of code in 460 files:
LanguageFilesBlank linesComment linesLines of code
PHP1498,45616,73335,271
SVG2610117,689
Sass1478882,866
JavaScript215201861,549
CSS1502018

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity72.30
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity4.44
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes60
▷ Abstract classes23.33%
▷ Concrete classes5896.67%
▷ Final classes11.72%
Methods1,269
▷ Static methods19415.29%
▷ Public methods92272.66%
▷ Protected methods171.34%
▷ Private methods33026.00%
Functions125
▷ Named functions12297.60%
▷ Anonymous functions32.40%
Constants131
▷ Global constants10680.92%
▷ Class constants2519.08%
▷ Public constants25100.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
22 PNG files occupy 0.23MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
assets/images/get-started/add-import-podcasts.png21.13KB10.41KB▼ 50.72%
assets/images/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png0.27KB0.18KB▼ 35.00%
assets/images/get-started/podcast-player-widget.png37.96KB18.44KB▼ 51.43%
assets/images/list.png5.08KB2.30KB▼ 54.69%