84% featured-audio

Code Review | Featured Audio

WordPress plugin Featured Audio scored84%from 54 tests.

About plugin

  • Plugin page: featured-audio
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3
  • WordPress version: 6.3.1
  • First release: Jul 12, 2016
  • Latest release: Sep 18, 2023
  • Number of updates: 16
  • Update frequency: every 164.0 days
  • Top authors: celloexpressions (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

700+ active /12,095 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.69ms] Passed 4 tests

An overview of server-side resources used by Featured Audio
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0941.10 ▲4.81
Dashboard /wp-admin3.38 ▲0.0348.29 ▼14.32
Posts /wp-admin/edit.php3.49 ▲0.1341.44 ▼8.61
Add New Post /wp-admin/post-new.php5.98 ▲0.1092.72 ▼4.72
Media Library /wp-admin/upload.php3.30 ▲0.0733.19 ▲0.88

Server storage [IO: ▲0.03MB] [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: 6 new files
Database: no new tables, 8 new options
New WordPress options
widget_featured_audio_recent_playlist_widget
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_featured_audio_playlist_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Featured Audio
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▲0.001.76 ▲0.1944.12 ▲2.13
Dashboard /wp-admin2,198 ▲215.62 ▲0.0286.47 ▼2.3838.40 ▼6.71
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0634.05 ▼3.1031.78 ▼4.24
Add New Post /wp-admin/post-new.php6,257 ▲4,73121.08 ▼1.94874.17 ▲193.3077.02 ▲17.27
Media Library /wp-admin/upload.php1,400 ▼34.30 ▲0.08104.24 ▲3.0842.58 ▼2.72

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 detected upon uninstall: 8 options
    • widget_featured_audio_playlist_widget
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_featured_audio_recent_playlist_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 4× 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/featured-audio/featured-audio-recent-playlist-widget.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/featured-audio/post-meta.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/featured-audio/featured-audio-playlist-widget.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/featured-audio/featured-audio.php:33

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: audio, podcast, media, music

featured-audio/featured-audio.php Passed 13 tests

The main PHP file in "Featured Audio" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
65 characters long description:
Add featured audio to your posts and pages, like featured images.

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
There were no executable files found in this plugin380 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP468124308
JavaScript1122572

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.25
Average class complexity6.00
▷ Minimum class complexity5.00
▷ Maximum class complexity7.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin