84% fresh-podcaster

Code Review | fresh Podcaster

WordPress plugin fresh Podcaster scored84%from 54 tests.

About plugin

  • Plugin page: fresh-podcaster
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-5.7
  • WordPress version: 6.3.1
  • First release: Aug 19, 2019
  • Latest release: May 6, 2021
  • Number of updates: 13
  • Update frequency: every 48.2 days
  • Top authors: freshlabs (69.23%)v90freshlabs (38.46%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /922 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
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.64ms] Passed 4 tests

Server-side resources used by fresh Podcaster
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.37 ▼1.53
Dashboard /wp-admin3.37 ▲0.0246.97 ▼18.85
Posts /wp-admin/edit.php3.48 ▲0.1257.50 ▲9.32
Add New Post /wp-admin/post-new.php5.97 ▲0.0887.52 ▼10.63
Media Library /wp-admin/upload.php3.29 ▲0.0633.71 ▲0.47

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
fresh_podcaster_css
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for fresh Podcaster
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲17713.57 ▼0.818.52 ▲6.7145.18 ▲2.18
Dashboard /wp-admin2,209 ▲215.83 ▼0.0799.05 ▼10.9381.51 ▲39.81
Posts /wp-admin/edit.php2,107 ▲212.00 ▼0.0233.73 ▼3.8632.68 ▼2.04
Add New Post /wp-admin/post-new.php1,543 ▲1018.36 ▼4.60640.27 ▼17.6566.59 ▲4.22
Media Library /wp-admin/upload.php1,397 ▲94.11 ▼0.0898.28 ▼8.3774.58 ▲27.37

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/fresh-podcaster/admin/partials/fresh-podcaster-admin-display.php:26
    • > PHP Warning
      extract() expects parameter 1 to be array, null given in wp-content/plugins/fresh-podcaster/public/partials/fresh-podcaster-public-display.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/fresh-podcaster/public/partials/fresh-podcaster-public-display.php:22

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 errors were detected

Optimizations

Plugin configuration 93% 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 require images: #1 (Example of a custom fresh Podcaster), #2 (Example of the custom CSS editor in fresh Podcaster), #3 (The fresh Podcaster shortcode generator)
  • Donate link: Invalid URI found ("freshlabs.de")
You can look at the official readme.txt

fresh-podcaster/fresh-podcaster.php Passed 13 tests

The main file in "fresh Podcaster" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
69 characters long description:
fresh Podcaster is a simple yet customizable plugin to embed podcasts

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
Good job! No executable or dangerous file extensions detected1,310 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
CSS2709680
PHP13169603357
PO File23850138
JavaScript22029135

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity1.62
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods30
▷ Static methods310.00%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.45MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png420.31KB115.63KB▼ 72.49%
icon-256x256.png6.91KB7.09KB0.00%
admin/img/logo.png6.70KB6.94KB0.00%
screenshot-2.png4.90KB4.74KB▼ 3.23%
admin/img/icon.png0.47KB0.47KB0.00%