84% wp-podcast-ku

Code Review | WP Podcast KU

WordPress plugin WP Podcast KU scored84%from 54 tests.

About plugin

  • Plugin page: wp-podcast-ku
  • Plugin version: 1.0.0
  • PHP compatiblity: 8.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 23, 2022
  • Latest release: Dec 25, 2022
  • Number of updates: 7
  • Update frequency: every 3.1 days
  • Top authors: hadie danker (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /133 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.80ms] Passed 4 tests

Analyzing server-side resources used by WP Podcast KU
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.14 ▲0.21
Dashboard /wp-admin3.31 ▲0.0043.87 ▼3.86
Posts /wp-admin/edit.php3.36 ▲0.0044.89 ▼6.95
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.92 ▼14.34
Media Library /wp-admin/upload.php3.23 ▲0.0033.01 ▼2.05

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WP Podcast KU
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.19 ▼1.241.71 ▼0.3544.30 ▲3.44
Dashboard /wp-admin2,206 ▲184.86 ▼0.0599.82 ▼1.7040.62 ▼2.67
Posts /wp-admin/edit.php2,089 ▼01.96 ▼0.0436.24 ▼4.9331.07 ▼2.90
Add New Post /wp-admin/post-new.php1,514 ▼517.78 ▼5.66663.14 ▲43.3757.79 ▲2.72
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0295.01 ▼0.8241.31 ▲1.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-podcast-ku/wp-podcast-ku.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-podcast-ku/includes/single-podcast.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-podcast-ku/includes/podcast-post-type.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-podcast-ku/includes/podcast-metabox.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-podcast-ku/includes/podcast-content.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
3 plugin tags: audio, podcast, player

wp-podcast-ku/wp-podcast-ku.php 85% from 13 tests

This is the main PHP file of "WP Podcast KU" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path folder was not found ("/languages")

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
Success! There were no dangerous files found in this plugin591 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP511155382
CSS2195135
JavaScript210474

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin