78% podcast-player

Code Review | Podcast Player - Your Podcasting Companion

WordPress plugin Podcast Player - Your Podcasting Companion scored78%from 54 tests.

About plugin

  • Plugin page: podcast-player
  • Plugin version: 6.7.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Feb 6, 2019
  • Latest release: Nov 26, 2023
  • Number of updates: 101
  • Update frequency: every 17.4 days
  • Top authors: vedathemes (100%)

Code review

54 tests

User reviews

84 reviews

Install metrics

10,000+ active /289,575 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲1.17MB] [CPU: ▲5.82ms] Passed 4 tests

An overview of server-side resources used by Podcast Player - Your Podcasting Companion
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.53 ▲1.0640.62 ▼0.61
Dashboard /wp-admin4.58 ▲1.2362.87 ▲1.05
Posts /wp-admin/edit.php4.59 ▲1.2367.08 ▲11.76
Add New Post /wp-admin/post-new.php7.06 ▲1.17104.13 ▲11.09
Media Library /wp-admin/upload.php4.47 ▲1.2450.65 ▲14.12
Settings /wp-admin/admin.php?page=pp-settings4.5251.58
Toolkit /wp-admin/admin.php?page=pp-toolkit4.5249.39
Help & Support /wp-admin/admin.php?page=pp-help4.5148.10
Podcast Player /wp-admin/admin.php?page=pp-options4.5244.91

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 133 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
pp-custom-data-transferred
widget_podcast_player_widget
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Podcast Player - Your Podcasting Companion
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,593 ▲84614.88 ▲0.611.60 ▲0.0137.03 ▼7.50
Dashboard /wp-admin2,990 ▲8166.72 ▲1.07134.16 ▲37.8549.28 ▲3.16
Posts /wp-admin/edit.php2,852 ▲7553.34 ▲1.3865.99 ▲29.3633.53 ▼2.02
Add New Post /wp-admin/post-new.php6,800 ▲5,27419.17 ▼1.88908.36 ▲209.4740.39 ▼7.40
Media Library /wp-admin/upload.php1,989 ▲5894.46 ▲0.2989.74 ▼20.2041.10 ▼7.13
Settings /wp-admin/admin.php?page=pp-settings1,8443.5656.1244.49
Toolkit /wp-admin/admin.php?page=pp-toolkit1,7153.7257.1836.18
Help & Support /wp-admin/admin.php?page=pp-help1,8993.5149.4132.40
Podcast Player /wp-admin/admin.php?page=pp-options1,7123.6350.7945.11

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_podcast_player_widget
    • pp-custom-data-transferred

Smoke tests 50% 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/podcast-player/backend/admin/templates/help.php
  • 67× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Podcast_Player\\Helper\\Core\\Singleton' not found in wp-content/plugins/podcast-player/frontend/inc/class-general.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/podcast-player/frontend/templates/subscribe/spotify.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/podcast-player/frontend/templates/misc/buttons/pod-menu.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Podcast_Player\\Helper\\Functions\\Markup' not found in wp-content/plugins/podcast-player/frontend/templates/subscribe/castbox.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Podcast_Player\\Helper\\Functions\\Markup' not found in wp-content/plugins/podcast-player/frontend/templates/subscribe/breaker.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Podcast_Player\\Helper\\Core\\Singleton' not found in wp-content/plugins/podcast-player/frontend/inc/class-loader.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Podcast_Player\\Helper\\Core\\Singleton' not found in wp-content/plugins/podcast-player/helper/feed/class-add-external-link-attr.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/podcast-player/backend/partials/pp-notifications.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Podcast_Player\\Helper\\Functions\\Getters' not found in wp-content/plugins/podcast-player/backend/admin/templates/home.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Podcast_Player\\Helper\\Functions\\Markup' not found in wp-content/plugins/podcast-player/frontend/templates/misc/buttons/playpause.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
5 plugin tags: podcast, podcaster, rss feed, podcasting, feed to audio

podcast-player/podcast-player.php 92% from 13 tests

The primary PHP file in "Podcast Player - Your Podcasting Companion" version 6.7.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 158 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin30,345 lines of code in 128 files:
LanguageFilesBlank linesComment linesLines of code
CSS83,9423217,280
PHP841,3004,7988,374
JavaScript345569744,414
SVG2032277

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity35.42
▷ Minimum class complexity1.00
▷ Maximum class complexity207.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes33
▷ Abstract classes00.00%
▷ Concrete classes33100.00%
▷ Final classes00.00%
Methods340
▷ Static methods6619.41%
▷ Public methods24872.94%
▷ Protected methods205.88%
▷ Private methods7221.18%
Functions38
▷ Named functions00.00%
▷ Anonymous functions38100.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin