77% my-buzzsprout-podcasts

Code Review | My Buzzsprout Podcasts

WordPress plugin My Buzzsprout Podcasts scored77%from 54 tests.

About plugin

  • Plugin page: my-buzzsprout-pod...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 6.3.1
  • First release: May 25, 2021
  • Latest release: May 25, 2021
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: aveosoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /341 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 gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.02ms] Passed 4 tests

Server-side resources used by My Buzzsprout Podcasts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.00 ▲1.51
Dashboard /wp-admin3.38 ▲0.0846.76 ▼0.78
Posts /wp-admin/edit.php3.34 ▼0.0238.07 ▼9.78
Add New Post /wp-admin/post-new.php5.96 ▲0.0889.41 ▼11.04
Media Library /wp-admin/upload.php3.30 ▲0.0738.76 ▲3.13
Setting /wp-admin/edit.php?post_type=podcast&page=podcast-setting3.2532.62
All Podcast /wp-admin/edit.php?post_type=podcast3.3234.74
Add New /wp-admin/post-new.php?post_type=podcast3.3343.67

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for My Buzzsprout Podcasts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲7414.72 ▲0.371.59 ▼0.2138.55 ▼4.40
Dashboard /wp-admin2,230 ▲505.60 ▼0.0587.88 ▼1.3136.83 ▼1.79
Posts /wp-admin/edit.php2,135 ▲352.00 ▼0.0037.19 ▲1.1130.66 ▼7.28
Add New Post /wp-admin/post-new.php1,556 ▲3023.32 ▲0.26612.32 ▼29.2869.51 ▲12.14
Media Library /wp-admin/upload.php1,435 ▲324.12 ▼0.08104.92 ▼4.3444.62 ▼3.10
Setting /wp-admin/edit.php?post_type=podcast&page=podcast-setting8272.0325.8125.27
All Podcast /wp-admin/edit.php?post_type=podcast1,1111.9736.6931.22
Add New /wp-admin/post-new.php?post_type=podcast2,5668.47197.7574.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=podcast
    • > Notice in wp-content/plugins/my-buzzsprout-podcasts/index.php+205
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/edit.php?post_type=podcast
    • > Notice in wp-content/plugins/my-buzzsprout-podcasts/index.php+127
    Undefined index: page

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/my-buzzsprout-podcasts/templates/single_podcast.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/my-buzzsprout-podcasts/templates/podcast_list.php:37

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 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
Attributes that require attention:
  • Requires php: The plugin version is formatted incorrectly
  • Contributors: The plugin contributors field is not present
The official readme.txt might help

my-buzzsprout-podcasts/index.php 85% from 13 tests

The principal PHP file in "My Buzzsprout Podcasts" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 182 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("my-buzzsprout-podcasts.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin454 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP42875365
CSS10055
JavaScript10034

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16100.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected