84% simple-podcasting

Code Review | Simple Podcasting

WordPress plugin Simple Podcasting scored84%from 54 tests.

About plugin

  • Plugin page: simple-podcasting
  • Plugin version: 1.6.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4
  • WordPress version: 6.3.1
  • First release: Jun 29, 2018
  • Latest release: Nov 21, 2023
  • Number of updates: 23
  • Update frequency: every 86.0 days
  • Top authors: helen (47.83%)10up (39.13%)10upbot (21.74%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /12,827 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.36MB] [CPU: ▼1.42ms] Passed 4 tests

A check of server-side resources used by Simple Podcasting
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3638.52 ▼1.36
Dashboard /wp-admin3.65 ▲0.3148.72 ▼12.91
Posts /wp-admin/edit.php3.77 ▲0.4154.25 ▲6.69
Add New Post /wp-admin/post-new.php6.33 ▲0.4497.10 ▲1.92
Media Library /wp-admin/upload.php3.58 ▲0.3543.58 ▲12.31
/wp-admin/admin.php?page=simple-podcasting-onboarding3.5840.44

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Podcasting
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5714.28 ▼0.071.62 ▼0.4337.46 ▼7.83
Dashboard /wp-admin2,207 ▲365.62 ▲0.0194.74 ▼6.0541.62 ▼3.74
Posts /wp-admin/edit.php2,139 ▲391.96 ▼0.0739.31 ▲1.7738.50 ▲2.72
Add New Post /wp-admin/post-new.php1,512 ▼1424.05 ▲0.89700.11 ▲33.9438.14 ▼11.29
Media Library /wp-admin/upload.php1,403 ▲94.17 ▼0.03104.95 ▲5.4543.38 ▲0.32
/wp-admin/admin.php?page=simple-podcasting-onboarding1,6823.0749.1271.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • simple_podcasting_onboarding
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% 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 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
Almost there! Just fix the following items
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function tenup_podcasting\\block_patterns\\add_action() in wp-content/plugins/simple-podcasting/includes/block-patterns.php:50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function tenup_podcasting\\plugin_dir_url() in wp-content/plugins/simple-podcasting/simple-podcasting.php:68
    • > PHP Fatal error
      Uncaught Error: Call to undefined function tenup_podcasting\\admin\\add_action() in wp-content/plugins/simple-podcasting/includes/admin/create-podcast-component.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/simple-podcasting/includes/admin/views/onboarding-header.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/simple-podcasting/includes/admin/views/onboarding-page-two.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function tenup_podcasting\\add_action() in wp-content/plugins/simple-podcasting/includes/datatypes.php:184
    • > PHP Fatal error
      Uncaught Error: Call to undefined function tenup_podcasting\\block\\add_action() in wp-content/plugins/simple-podcasting/includes/blocks.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/simple-podcasting/includes/admin/views/onboarding-page-one.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function tenup_podcasting\\add_action() in wp-content/plugins/simple-podcasting/includes/customize-feed.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function tenup_podcasting\\admin\\get_option() in wp-content/plugins/simple-podcasting/includes/admin/onboarding.php:130

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)
No browser issues were found

Optimizations

Plugin configuration Passed 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
8 plugin tags: simple podcasting, podcasting, gutenberg, podcast, apple podcasts...

simple-podcasting/simple-podcasting.php Passed 13 tests

The principal PHP file in "Simple Podcasting" v. 1.6.1 is loaded by WordPress automatically on each request
123 characters long description:
Easily set up multiple podcast feeds using built-in WordPress posts. Includes a podcast block for the new WordPress editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected2,095 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP203085182,083
JavaScript6008
CSS4004

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity7.75
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity3.88
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions65
▷ Named functions5483.08%
▷ Anonymous functions1116.92%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.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
68 PNG files occupy 0.17MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
dist/images/icons/playerfm/color-100.png8.21KB4.89KB▼ 40.41%
dist/assets/images/podcast-block-preview.png17.73KB7.13KB▼ 59.78%
dist/images/icons/spotify/color-40.png1.04KB0.54KB▼ 48.55%
dist/images/icons/stitcher/black-100.png1.12KB0.71KB▼ 36.91%
dist/images/icons/tunein/black-40.png0.43KB0.35KB▼ 19.27%