78% libsyn-podcasting

Code Review | Libsyn Publisher Hub

WordPress plugin Libsyn Publisher Hub scored78%from 54 tests.

About plugin

  • Plugin page: libsyn-podcasting
  • Plugin version: 1.4.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 13, 2015
  • Latest release: Sep 26, 2023
  • Number of updates: 144
  • Update frequency: every 20.9 days
  • Top authors: libsyn (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

2,000+ active /105,534 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲2.36MB] [CPU: ▲17.53ms] Passed 4 tests

Analyzing server-side resources used by Libsyn Publisher Hub
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /5.80 ▲2.3461.73 ▲18.60
Dashboard /wp-admin5.68 ▲2.3871.80 ▲17.93
Posts /wp-admin/edit.php5.73 ▲2.3769.79 ▲19.84
Add New Post /wp-admin/post-new.php8.40 ▲2.51120.12 ▲14.09
Media Library /wp-admin/upload.php5.57 ▲2.3456.53 ▲19.48
Debug /wp-admin/admin.php?page=LibsynDebugLog5.6154.94
Import Feed /wp-admin/admin.php?page=LibsynImports5.8560.22
Content /wp-admin/admin.php?page=LibsynContent5.6854.63
Settings /wp-admin/admin.php?page=LibsynSettings6.0056.23

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Libsyn Publisher Hub
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,025 ▲26414.97 ▲0.621.77 ▼0.0140.63 ▼6.26
Dashboard /wp-admin2,416 ▲2366.80 ▲1.20122.48 ▲31.7687.51 ▲43.78
Posts /wp-admin/edit.php2,362 ▲2623.70 ▲1.7353.02 ▲14.2982.70 ▲44.84
Add New Post /wp-admin/post-new.php1,773 ▲24222.97 ▼0.23687.65 ▲4.4837.10 ▼15.02
Media Library /wp-admin/upload.php1,490 ▲904.82 ▲0.6592.35 ▼23.6296.56 ▲47.89
Debug /wp-admin/admin.php?page=LibsynDebugLog1,1513.8047.5966.23
Import Feed /wp-admin/admin.php?page=LibsynImports1,4803.8743.9386.23
Content /wp-admin/admin.php?page=LibsynContent1,1073.8446.8461.31
Settings /wp-admin/admin.php?page=LibsynSettings1,1553.8646.5082.14

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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 fix the following
  • 6× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/libsyn-podcasting/admin/views/box_about.php
    • > /wp-content/plugins/libsyn-podcasting/admin/views/box_playersettings.php
    • > /wp-content/plugins/libsyn-podcasting/admin/views/support/initial-setup.php
    • > /wp-content/plugins/libsyn-podcasting/admin/config.php
    • > /wp-content/plugins/libsyn-podcasting/admin/views/box_clear-settings.php
    • > /wp-content/plugins/libsyn-podcasting/admin/views/box_support.php
  • 35× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/libsyn-podcasting/admin/lib/Libsyn/PlaylistWidget.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Error' not found in wp-content/plugins/libsyn-podcasting/admin/lib/Libsyn/Notification.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'Libsyn\\Service\\Psr\\Log\\LoggerInterface' not found in wp-content/plugins/libsyn-podcasting/admin/lib/Libsyn/Service/Psr/Log/AbstractLogger.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Libsyn\\Service' not found in wp-content/plugins/libsyn-podcasting/admin/lib/Libsyn/Service/Destination.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Libsyn\\Post' not found in wp-content/plugins/libsyn-podcasting/admin/lib/Libsyn/Post/Classic.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Libsyn' not found in wp-content/plugins/libsyn-podcasting/admin/lib/Libsyn/Site.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/libsyn-podcasting/libsyn-podcasting.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'Libsyn\\Service' not found in wp-content/plugins/libsyn-podcasting/admin/imports.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Libsyn\\Service' not found in wp-content/plugins/libsyn-podcasting/admin/lib/Libsyn/Service/Integration.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Libsyn\\Service\\Widget' not found in wp-content/plugins/libsyn-podcasting/admin/lib/Libsyn/Service/Widget/MyLibsyn.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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
These attributes need to be fixed:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
The official readme.txt might help

libsyn-podcasting/libsyn-podcasting.php 92% from 13 tests

The main PHP script in "Libsyn Publisher Hub" version 1.4.4 is automatically included on every request by WordPress
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected59,078 lines of code in 106 files:
LanguageFilesBlank linesComment linesLines of code
JSON40030,701
PHP491,3263,90811,994
JavaScript301,3622,47411,089
CSS204195194,734
Sass2563543
Markdown18017

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 193)
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity57.33
▷ Minimum class complexity1.00
▷ Maximum class complexity440.00
Average method complexity6.68
▷ Minimum method complexity1.00
▷ Maximum method complexity193.00
Code structure
Namespaces7
Interfaces2
Traits2
Classes29
▷ Abstract classes26.90%
▷ Concrete classes2793.10%
▷ Final classes00.00%
Methods325
▷ Static methods9930.46%
▷ Public methods31195.69%
▷ Protected methods30.92%
▷ Private methods113.38%
Functions39
▷ Named functions3487.18%
▷ Anonymous functions512.82%
Constants17
▷ Global constants529.41%
▷ Class constants1270.59%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
84 PNG files occupy 0.38MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/css/jquery-ui-theme/images/ui-bg_highlight-hard_55_BB0000_1x100.png0.31KB0.16KB▼ 49.53%
lib/css/images/ui-icons_82a532_256x240.png4.44KB4.17KB▼ 6.02%
lib/css/jquery-ui-theme/images/ui-bg_flat_50_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
lib/css/images/ui-icons_60a135_256x240.png4.27KB4.11KB▼ 3.78%
lib/images/libsyn_dark-small.png17.93KB4.00KB▼ 77.67%