84% podcasts

Code Review | Podcasts

WordPress plugin Podcasts scored84%from 54 tests.

About plugin

  • Plugin page: podcasts
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.6
  • WordPress version: 6.3.1
  • First release: Dec 30, 2020
  • Latest release: Jan 5, 2021
  • Number of updates: 6
  • Update frequency: every 1.0 days
  • Top authors: tqtifnypmb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /556 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.16MB] [CPU: ▼17.01ms] Passed 4 tests

Server-side resources used by Podcasts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.73 ▲0.79
Dashboard /wp-admin3.13 ▼0.1728.50 ▼20.52
Posts /wp-admin/edit.php3.27 ▼0.0931.44 ▼16.15
Add New Post /wp-admin/post-new.php5.52 ▼0.3767.73 ▼24.93
Media Library /wp-admin/upload.php3.22 ▼0.0129.56 ▼6.45

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
podcasts_version
widget_recent-posts
podcasts_installed

Browser metrics Passed 4 tests

This is an overview of browser requirements for Podcasts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲11413.31 ▼0.901.69 ▼0.1039.18 ▼0.58
Dashboard /wp-admin2,258 ▲675.83 ▼0.04101.88 ▼0.0974.57 ▲31.47
Posts /wp-admin/edit.php2,135 ▲461.99 ▼0.0637.43 ▲0.1435.81 ▼1.70
Add New Post /wp-admin/post-new.php1,564 ▲5023.17 ▲5.69766.37 ▲89.1155.52 ▲0.19
Media Library /wp-admin/upload.php1,431 ▲464.24 ▲0.0299.18 ▼3.5186.45 ▲44.76
App /wp-admin/admin.php?page=podcasts#/9155.7288.6552.57

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • podcasts_version
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • podcasts_installed

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/podcasts/includes/Api/PodcastsApi.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/podcasts/includes/Api.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: podcast to article, podcast seo, podcast to text, podcast transcribe

podcasts/podcasts.php 92% from 13 tests

Analyzing the main PHP file in "Podcasts" version 1.0.2
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin313 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP694215294
SVG30113
JavaScript4014
CSS2062

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity6.17
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods34
▷ Static methods12.94%
▷ Public methods3191.18%
▷ Protected methods00.00%
▷ Private methods38.82%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
30 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/options_download_default.png0.63KB0.64KB0.00%
assets/images/opitons_transcript_default.png0.58KB0.59KB0.00%
assets/images/timeline_check.png0.56KB0.39KB▼ 30.97%
assets/images/opitons_transcript_hover.png0.60KB0.61KB0.00%
assets/images/station_subscribe.png1.32KB1.21KB▼ 8.29%