77% podlove-podcasting-plugin-for-wordpress

Code Review | Podlove Podcast Publisher

WordPress plugin Podlove Podcast Publisher scored77%from 54 tests.

About plugin

  • Plugin page: podlove-podcastin...
  • Plugin version: 4.0.9
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 26, 2012
  • Latest release: Dec 1, 2023
  • Number of updates: 859
  • Update frequency: every 4.9 days
  • Top authors: eteubert (100%)

Code review

54 tests

User reviews

43 reviews

Install metrics

6,000+ active /392,674 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Server-side resources used by Podlove Podcast Publisher
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.39 ▼8.60
Dashboard /wp-admin3.31 ▼0.0445.35 ▼12.35
Posts /wp-admin/edit.php3.36 ▲0.0046.90 ▼1.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.49 ▼15.78
Media Library /wp-admin/upload.php3.23 ▲0.0033.30 ▲1.34

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 1,862 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Podlove Podcast Publisher
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.34 ▲0.161.74 ▼0.0438.46 ▼6.13
Dashboard /wp-admin2,195 ▲175.61 ▼0.0591.95 ▼23.8640.04 ▼2.41
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.1237.63 ▼4.6036.90 ▼3.30
Add New Post /wp-admin/post-new.php1,526 ▼023.76 ▲0.55691.29 ▼5.8754.35 ▲0.96
Media Library /wp-admin/upload.php1,394 ▼94.19 ▼0.0393.72 ▼6.6842.45 ▼1.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 6× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/podlove-podcasting-plugin-for-wordpress/vendor-prefixed/matomo/mustangostang/spyc/php4/5to4.php
    • > /wp-content/plugins/podlove-podcasting-plugin-for-wordpress/lib/ajax/ajax.analytics_global_total_downloads_by_show.html.php
    • > /wp-content/plugins/podlove-podcasting-plugin-for-wordpress/vendor/mustangostang/spyc/examples/yaml-load.php
    • > /wp-content/plugins/podlove-podcasting-plugin-for-wordpress/vendor/mustangostang/spyc/php4/5to4.php
    • > /wp-content/plugins/podlove-podcasting-plugin-for-wordpress/includes/donation_banner.html.php
    • > /wp-content/plugins/podlove-podcasting-plugin-for-wordpress/vendor-prefixed/matomo/mustangostang/spyc/examples/yaml-load.php
  • 780× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Parse error
      syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/podlove-podcasting-plugin-for-wordpress/vendor/symfony/yaml/Inline.php on line 192
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\BufferHandler' not found in wp-content/plugins/podlove-podcasting-plugin-for-wordpress/vendor/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/podlove-podcasting-plugin-for-wordpress/includes/scripts_and_styles.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/podlove-podcasting-plugin-for-wordpress/vendor/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php:26
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/podlove-podcasting-plugin-for-wordpress/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Podlove\\Model\\Base' not found in wp-content/plugins/podlove-podcasting-plugin-for-wordpress/lib/model/geo_area_name.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'PodlovePublisher_Vendor\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/podlove-podcasting-plugin-for-wordpress/vendor-prefixed/monolog/src/Monolog/Handler/MongoDBHandler.php:33
    • > PHP Fatal error
      Uncaught Error: Class 'PodlovePublisher_Vendor\\PHPUnit_Framework_TestCase' not found in wp-content/plugins/podlove-podcasting-plugin-for-wordpress/vendor-prefixed/matomo/mustangostang/spyc/tests/IndentTest.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'DeviceDetector\\Cache\\CacheInterface' not found in wp-content/plugins/podlove-podcasting-plugin-for-wordpress/vendor/matomo/device-detector/Cache/DoctrineBridge.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'MaxMind\\WebService\\Http\\Request' not found in wp-content/plugins/podlove-podcasting-plugin-for-wordpress/vendor/maxmind/web-service-common/src/WebService/Http/CurlRequest.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt might help

podlove-podcasting-plugin-for-wordpress/podlove.php 92% from 13 tests

The principal PHP file in "Podlove Podcast Publisher" v. 4.0.9 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("podlove-podcasting-plugin-for-wordpress.php" instead of "podlove.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin201,218 lines of code in 1,312 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,06815,27130,40291,996
YAML346,0415,10179,097
JavaScript702,4275,25512,532
CSS174171633,797
Markdown301,56003,517
JSON4003,394
Vuejs Component24314382,770
SVG13441,826
Twig218212934
C111825668
XML113716343
HTML13151229
Bourne Shell118038
TypeScript310037
m418032
C/C++ Header14128

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
Please fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 130)
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity10.19
▷ Minimum class complexity1.00
▷ Maximum class complexity299.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity130.00
Code structure
Namespaces193
Interfaces45
Traits16
Classes890
▷ Abstract classes424.72%
▷ Concrete classes84895.28%
▷ Final classes748.73%
Methods5,677
▷ Static methods87615.43%
▷ Public methods4,46778.69%
▷ Protected methods58310.27%
▷ Private methods62711.04%
Functions1,028
▷ Named functions38837.74%
▷ Anonymous functions64062.26%
Constants358
▷ Global constants215.87%
▷ Class constants33794.13%
▷ Public constants25976.85%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
443 PNG files occupy 2.81MB with 1.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/modules/subscribe_button/js/dist/images/ios/sleekcast@1x.png2.06KB1.63KB▼ 21.24%
lib/modules/social/images/icons/scopus.png12.30KB7.62KB▼ 38.04%
lib/modules/subscribe_button/js/dist/images/windows/podscout@3x.png7.13KB3.11KB▼ 56.44%
lib/modules/subscribe_button/js/dist/images/osx/instacast@2x.png4.33KB2.67KB▼ 38.44%
lib/modules/subscribe_button/js/dist/images/android/podkicker@2x.png11.01KB3.50KB▼ 68.23%