66% powerpress

Code Review | PowerPress Podcasting plugin by Blubrry

WordPress plugin PowerPress Podcasting plugin by Blubrry scored66%from 54 tests.

About plugin

  • Plugin page: powerpress
  • Plugin version: 11.3.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.4
  • WordPress version: 6.3.1
  • First release: Aug 8, 2008
  • Latest release: Nov 29, 2023
  • Number of updates: 1,583
  • Update frequency: every 3.5 days
  • Top authors: amandato (79.09%)benbeecroft (20.34%)

Code review

54 tests

User reviews

228 reviews

Install metrics

40,000+ active /4,473,019 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: ▲2.39MB] [CPU: ▲16.73ms] Passed 4 tests

Analyzing server-side resources used by PowerPress Podcasting plugin by Blubrry
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.71 ▲1.2549.22 ▲6.06
Dashboard /wp-admin7.24 ▲3.9483.49 ▲34.96
Posts /wp-admin/edit.php5.97 ▲2.6162.53 ▲16.15
Add New Post /wp-admin/post-new.php9.06 ▲3.17119.44 ▲23.96
Media Library /wp-admin/upload.php5.78 ▲2.5553.26 ▲20.75
PowerPress /wp-admin/options-general.php?page=powerpressadmin_basic7.9166.72

Server storage [IO: ▲9.71MB] [DB: ▲0.28MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 283 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_powerpress_subscribe
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for PowerPress Podcasting plugin by Blubrry
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,558 ▲79613.59 ▼1.121.75 ▲0.0441.56 ▼3.79
Dashboard /wp-admin2,942 ▲7625.32 ▼0.35119.19 ▲20.2788.20 ▲42.34
Posts /wp-admin/edit.php2,197 ▲972.39 ▲0.4539.84 ▲2.5832.43 ▼2.50
Add New Post /wp-admin/post-new.php8,317 ▲6,79126.04 ▲2.94847.54 ▲252.7939.87 ▼2.25
Media Library /wp-admin/upload.php1,456 ▲564.22 ▲0.0392.59 ▼2.3766.97 ▲25.07
Import Podcast /wp-admin/powerpressadmin_onboarding.php?page=powerpress/powerpressadmin_import_feed.php260.410.1113.88
Tools /wp-admin/powerpressadmin_onboarding.php?page=powerpress/powerpressadmin_tools.php260.410.085.37
Video Player /wp-admin/powerpressadmin_onboarding.php?page=powerpress/powerpressadmin_videoplayer.php260.410.076.48
Migrate Media /wp-admin/powerpressadmin_onboarding.php?page=powerpress/powerpressadmin_migrate.php260.410.096.20
Audio Player /wp-admin/powerpressadmin_onboarding.php?page=powerpress/powerpressadmin_player.php260.410.107.03
Settings /wp-admin/powerpressadmin_onboarding.php?page=powerpressadmin_basic260.410.076.38
Live Item /wp-admin/powerpressadmin_onboarding.php?page=powerpress/powerpressadmin_live_item.php260.410.126.56
Get Started /wp-admin/powerpressadmin_onboarding.php260.410.056.73
PowerPress /wp-admin/options-general.php?page=powerpressadmin_basic11,0662.8460.78247.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_powerpress_subscribe
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=powerpressadmin_basic
    • > Notice in wp-content/plugins/powerpress/powerpressadmin-tags.php+160
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=powerpressadmin_basic
    • > Notice in wp-content/plugins/powerpress/powerpressadmin-editfeed.php+805
    Undefined index: email

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 fix the following items
  • 19× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/powerpress/shortcodes/views/list-no-programs.php
    • > /wp-content/plugins/powerpress/powerpressadmin-live-item.php
    • > /wp-content/plugins/powerpress/powerpressadmin-categoryfeeds.php
    • > /wp-content/plugins/powerpress/shortcodes/views/results.php
    • > /wp-content/plugins/powerpress/shortcodes/views/no-list-results.php
    • > /wp-content/plugins/powerpress/powerpressadmin-editfeed.php
    • > /wp-content/plugins/powerpress/powerpressadmin-podpress.php
    • > /wp-content/plugins/powerpress/powerpressadmin.php
    • > /wp-content/plugins/powerpress/powerpressadmin-tools.php
    • > /wp-content/plugins/powerpress/powerpressadmin-dashboard.php
  • 71× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      require_once(POWERPRESS_ABSPATH/powerpressadmin-auth.class.php): failed to open stream: No such file or directory in wp-content/plugins/powerpress/views/onboarding/blubrry_signup.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/powerpress/getid3/module.audio.ac3.php:18
    • > PHP Warning
      Use of undefined constant POWERPRESS_ABSPATH - assumed 'POWERPRESS_ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/powerpress/views/onboarding/blubrry_signup.php on line 2
    • > PHP Warning
      Use of undefined constant POWERPRESS_ABSPATH - assumed 'POWERPRESS_ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/powerpress/views/onboarding/createepisode.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/powerpress/admin/applications.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PowerPressNetworkShortCode' not found in wp-content/plugins/powerpress/shortcodes/Application.php:3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/import.php' (include_path='.:/usr/share/php') in wp-content/plugins/powerpress/powerpressadmin-rss-import.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/powerpress/getid3/module.tag.id3v1.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/powerpress/shortcodes/views/program.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'PowerPressNetwork' not found in wp-content/plugins/powerpress/shortcodes/views/program-result.php:1

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/powerpressadmin_onboarding.php?page=powerpress/powerpressadmin_import_feed.php
    • > Network (severe)
    wp-admin/powerpressadmin_onboarding.php?page=powerpress/powerpressadmin_import_feed.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/powerpressadmin_onboarding.php?page=powerpress/powerpressadmin_tools.php
    • > Network (severe)
    wp-admin/powerpressadmin_onboarding.php?page=powerpress/powerpressadmin_tools.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/powerpressadmin_onboarding.php?page=powerpress/powerpressadmin_videoplayer.php
    • > Network (severe)
    wp-admin/powerpressadmin_onboarding.php?page=powerpress/powerpressadmin_videoplayer.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/powerpressadmin_onboarding.php?page=powerpress/powerpressadmin_migrate.php
    • > Network (severe)
    wp-admin/powerpressadmin_onboarding.php?page=powerpress/powerpressadmin_migrate.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/powerpressadmin_onboarding.php?page=powerpress/powerpressadmin_player.php
    • > Network (severe)
    wp-admin/powerpressadmin_onboarding.php?page=powerpress/powerpressadmin_player.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/powerpressadmin_onboarding.php?page=powerpressadmin_basic
    • > Network (severe)
    wp-admin/powerpressadmin_onboarding.php?page=powerpressadmin_basic - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/powerpressadmin_onboarding.php?page=powerpress/powerpressadmin_live_item.php
    • > Network (severe)
    wp-admin/powerpressadmin_onboarding.php?page=powerpress/powerpressadmin_live_item.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/powerpressadmin_onboarding.php
    • > Network (severe)
    wp-admin/powerpressadmin_onboarding.php - 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

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Please delete some tags, you are using 85 tag instead of maximum 10
Please take inspiration from this readme.txt

powerpress/powerpress.php 92% from 13 tests

"PowerPress Podcasting plugin by Blubrry" version 11.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 486 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin61,840 lines of code in 203 files:
LanguageFilesBlank linesComment linesLines of code
PHP1076,7897,11345,403
CSS271,0771748,886
SVG612,188366,111
JavaScript698851,418
JSON10017
XML1005

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 373)
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity101.70
▷ Minimum class complexity1.00
▷ Maximum class complexity511.00
Average method complexity9.98
▷ Minimum method complexity1.00
▷ Maximum method complexity373.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes37
▷ Abstract classes12.70%
▷ Concrete classes3697.30%
▷ Final classes00.00%
Methods416
▷ Static methods17341.59%
▷ Public methods39093.75%
▷ Protected methods81.92%
▷ Private methods184.33%
Functions374
▷ Named functions36998.66%
▷ Anonymous functions51.34%
Constants52
▷ Global constants4484.62%
▷ Class constants815.38%
▷ Public constants8100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
61 PNG files occupy 4.14MB with 2.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/onboarding/signupblubrry.png8.98KB3.72KB▼ 58.54%
images/blubrry_icon.png1.12KB0.58KB▼ 48.29%
images/onboarding/mic.png9.59KB4.03KB▼ 57.97%
images/StatsIcon.png3.39KB2.18KB▼ 35.68%
images/spriteRetina2.png21.29KB12.61KB▼ 40.80%