78% podcastify

Code Review | Podcastify

WordPress plugin Podcastify scored 78% from 54 tests.

About plugin

  • Plugin page: podcastify
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Jan 19, 2021
  • Latest release: Sep 20, 2021
  • Number of updates: 7
  • Update frequency: every 36.4 days
  • Top authors: sharaz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,088 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.97MB] [CPU: ▲4.58ms] Passed 4 tests

An overview of server-side resources used by Podcastify
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.34 ▲0.8944.23 ▲3.28
Dashboard /wp-admin4.30 ▲1.0054.26 ▲5.52
Posts /wp-admin/edit.php4.35 ▲1.0057.96 ▲8.32
Add New Post /wp-admin/post-new.php7.01 ▲1.12100.63 ▲3.25
Media Library /wp-admin/upload.php4.20 ▲0.9843.35 ▲6.27
Series /wp-admin/edit-tags.php?taxonomy=episode_series&post_type=episode4.2242.79
All podcastify Episodes /wp-admin/edit.php?post_type=episode4.2847.34
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=episode4.2340.48
Settings /wp-admin/edit.php?post_type=episode&page=podcastify-setting4.2140.81
Add New /wp-admin/post-new.php?post_type=episode6.9991.13

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 67 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
widget_recent-posts
wpp_setting
db_upgraded
can_compress_scripts
wpp_player
wpp_feed
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Podcastify
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,040 ▲30516.48 ▲1.747.85 ▲5.7537.56 ▼8.71
Dashboard /wp-admin2,409 ▲2277.68 ▲2.56153.10 ▲44.6045.89 ▲4.44
Posts /wp-admin/edit.php2,317 ▲2284.19 ▲2.1966.61 ▲30.5935.95 ▲2.22
Add New Post /wp-admin/post-new.php1,567 ▲5324.13 ▲6.58649.14 ▼27.8138.37 ▼25.27
Media Library /wp-admin/upload.php1,450 ▲625.40 ▲1.2084.87 ▼17.2540.20 ▼5.20
Series /wp-admin/edit-tags.php?taxonomy=episode_series&post_type=episode1,4674.3944.1928.99
All podcastify Episodes /wp-admin/edit.php?post_type=episode1,3494.6356.6329.52
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=episode1,5424.3556.6932.15
Settings /wp-admin/edit.php?post_type=episode&page=podcastify-setting5,1485.34141.4270.19
Add New /wp-admin/post-new.php?post_type=episode6,83422.47852.7449.78

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/podcastify/includes/pages/main.php
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/podcastify/podcastify.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_localize_script() in wp-content/plugins/podcastify/templates/players/single.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Podcastify\\Classes\\is_admin() in wp-content/plugins/podcastify/includes/classes/class-wpp-meta-fields.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Podcastify\\Classes\\add_action() in wp-content/plugins/podcastify/includes/classes/class-podcast-post.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/podcastify/includes/rest/class-wp-rest-posts-controller.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/podcastify/includes/rest/class-wpp-episode-controller.php:17
    • > PHP Notice
      Undefined variable: episode_enclosure_link in wp-content/plugins/podcastify/templates/players/single.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wpp_get_setting() in wp-content/plugins/podcastify/includes/feed/wpp-feed.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Podcastify\\Classes\\add_filter() in wp-content/plugins/podcastify/includes/classes/class-taxonomy-fields.php:24

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
The official readme.txt is a good inspiration

podcastify/podcastify.php 92% from 13 tests

The main PHP file in "Podcastify" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 213 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin23,281 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript93,4725,38113,498
PHP241,1992,0085,454
CSS178481594,328
JSON1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity45.43
▷ Minimum class complexity1.00
▷ Maximum class complexity361.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods163
▷ Static methods31.84%
▷ Public methods14689.57%
▷ Protected methods169.82%
▷ Private methods10.61%
Functions47
▷ Named functions4391.49%
▷ Anonymous functions48.51%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.38MB with 0.19MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/thumbnail.png173.74KB59.24KB▼ 65.90%
assets/images/_no-image.png22.53KB15.45KB▼ 31.44%
dist/images/_no-image.png22.53KB15.45KB▼ 31.44%
dist/images/thumbnail.png173.74KB59.24KB▼ 65.90%