77% wp-podcasts-manager

Code Review | WP Podcasts Manager

WordPress plugin WP Podcasts Manager scored77%from 54 tests.

About plugin

  • Plugin page: wp-podcasts-manager
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Dec 22, 2020
  • Latest release: Oct 31, 2023
  • Number of updates: 13
  • Update frequency: every 80.7 days
  • Top authors: zluck (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,552 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: ▲0.14MB] [CPU: ▼3.73ms] Passed 4 tests

Server-side resources used by WP Podcasts Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1542.59 ▲2.02
Dashboard /wp-admin3.45 ▲0.1046.98 ▼14.92
Posts /wp-admin/edit.php3.56 ▲0.2049.06 ▲0.39
Add New Post /wp-admin/post-new.php6.05 ▲0.1683.81 ▼2.40
Media Library /wp-admin/upload.php3.37 ▲0.1438.37 ▲4.87
Add New /wp-admin/post-new.php?post_type=zl_podcast3.5852.78
Settings /wp-admin/edit.php?post_type=zl_podcast&page=podcasts3.4035.39
Categories /wp-admin/edit-tags.php?taxonomy=pd-cat&post_type=zl_podcast3.4934.54
All Podcasts /wp-admin/edit.php?post_type=zl_podcast3.4137.66

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Podcasts Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲18313.86 ▼0.598.20 ▲6.4368.78 ▲25.59
Dashboard /wp-admin2,235 ▲545.66 ▼0.0294.86 ▼10.1137.96 ▲0.45
Posts /wp-admin/edit.php2,143 ▲432.03 ▲0.0636.17 ▼1.0733.00 ▼2.18
Add New Post /wp-admin/post-new.php1,571 ▲3523.03 ▲5.03595.39 ▼44.2361.51 ▼22.74
Media Library /wp-admin/upload.php1,443 ▲434.27 ▼0.0698.53 ▼1.0945.44 ▲2.93
Add New /wp-admin/post-new.php?post_type=zl_podcast2,4027.81179.2671.43
Settings /wp-admin/edit.php?post_type=zl_podcast&page=podcasts1,1912.0129.5249.80
Categories /wp-admin/edit-tags.php?taxonomy=pd-cat&post_type=zl_podcast1,3172.2130.1028.85
All Podcasts /wp-admin/edit.php?post_type=zl_podcast1,1321.9933.8729.23

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=zl_podcast&page=podcasts
    • > Notice in wp-content/plugins/wp-podcasts-manager/podcasts-settings.php+29
    Undefined index: tab
    • > GET request to /wp-admin/edit.php?post_type=zl_podcast&page=podcasts
    • > Notice in wp-content/plugins/wp-podcasts-manager/podcasts-settings.php+41
    Undefined variable: type

SRP 50% 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
The following issues need your attention
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/wp-podcasts-manager/podcasts-template.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-podcasts-manager/podcasts.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-podcasts-manager/podcasts-settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-podcasts-manager/podcasts-cron.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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
Attributes that require attention:
  • Screenshots: These screenshots need descriptions #1, #2, #3 in wp-podcasts-manager/assets to your readme.txt
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

wp-podcasts-manager/podcasts.php 85% from 13 tests

Analyzing the main PHP file in "WP Podcasts Manager" version 1.2.1
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 164 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-podcasts-manager.php" instead of "podcasts.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin2,080 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
CSS25862994
PHP53788842
JavaScript23824206
SVG80038

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods654.55%
▷ Protected methods545.45%
▷ Private methods00.00%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/no-album-art.png2.35KB1.13KB▼ 52.05%