78% buzzsprout-podcasting

Code Review | Buzzsprout Podcasting

WordPress plugin Buzzsprout Podcasting scored 78% from 54 tests.

About plugin

  • Plugin page: buzzsprout-podcas...
  • Plugin version: 1.8.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 4, 2010
  • Latest release: Feb 2, 2023
  • Number of updates: 73
  • Update frequency: every 65.0 days
  • Top authors: molehill (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

7,000+ active / 61,863 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.07MB] [CPU: ▼8.04ms] Passed 4 tests

Server-side resources used by Buzzsprout Podcasting
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0635.11 ▼6.66
Dashboard /wp-admin3.37 ▲0.0742.41 ▼6.33
Posts /wp-admin/edit.php3.48 ▲0.1347.43 ▼1.53
Add New Post /wp-admin/post-new.php5.97 ▲0.0983.12 ▼17.45
Media Library /wp-admin/upload.php3.29 ▲0.0735.37 ▼1.72
Buzzsprout Podcasting /wp-admin/options-general.php?page=buzzsprout-podcasting3.2427.77

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

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

Browser metrics Passed 4 tests

Buzzsprout Podcasting: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲6213.25 ▼1.341.51 ▼0.2139.46 ▼3.66
Dashboard /wp-admin2,203 ▲115.86 ▲0.89111.34 ▼0.9844.10 ▲3.12
Posts /wp-admin/edit.php2,098 ▲62.29 ▲0.1349.06 ▲7.7936.21 ▲0.60
Add New Post /wp-admin/post-new.php1,524 ▼923.15 ▼0.10652.75 ▲29.2036.29 ▼11.71
Media Library /wp-admin/upload.php1,393 ▲54.21 ▲0.0395.83 ▼38.2040.48 ▼7.19
Buzzsprout Podcasting /wp-admin/options-general.php?page=buzzsprout-podcasting8682.0938.1632.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=buzzsprout-podcasting
    • > Notice in wp-content/plugins/buzzsprout-podcasting/buzzsprout-podcasting.php+217
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buzzsprout-podcasting/buzzsprout-podcasting.php:318

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Please delete some tags, you are using 48 tag instead of maximum 10
You can take inspiration from this readme.txt

buzzsprout-podcasting/buzzsprout-podcasting.php Passed 13 tests

Analyzing the main PHP file in "Buzzsprout Podcasting" version 1.8.3
116 characters long description:
This plugin fetches content from a Buzzsprout feed URL, from which user can pick an episode and add it into the post

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected321 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP23698190
CSS1190122
JavaScript2009

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.24
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods19100.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.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
8 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/warning.png1.04KB1.13KB0.00%
images/help-shortcode.png2.60KB1.46KB▼ 44.05%
images/help-toolbar1.png12.30KB5.33KB▼ 56.67%
images/info.png1.01KB0.94KB▼ 7.80%
images/help-toolbar2.png17.30KB6.42KB▼ 62.87%