74% icecast-now-playing

Code Review | Icecast Now Playing

WordPress plugin Icecast Now Playing scored74%from 54 tests.

About plugin

  • Plugin page: icecast-now-playing
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.1
  • WordPress version: 6.3.1
  • First release: May 27, 2010
  • Latest release: May 1, 2019
  • Number of updates: 70
  • Update frequency: every 46.6 days
  • Top authors: wgalway (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /10,946 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼1.83MB] [CPU: ▼55.00ms] Passed 4 tests

An overview of server-side resources used by Icecast Now Playing
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.304.43 ▼34.70
Dashboard /wp-admin2.18 ▼1.165.65 ▼51.99
Posts /wp-admin/edit.php2.18 ▼1.179.30 ▼41.90
Add New Post /wp-admin/post-new.php2.18 ▼3.706.41 ▼91.40
Media Library /wp-admin/upload.php2.18 ▼1.045.11 ▼27.47

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_icecast-widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Icecast Now Playing
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲15813.62 ▼0.635.15 ▲3.3339.96 ▼5.20
Dashboard /wp-admin2,203 ▲125.76 ▲0.9196.98 ▼9.4138.71 ▼4.73
Posts /wp-admin/edit.php2,092 ▲62.01 ▲0.0538.60 ▼2.8734.88 ▼1.27
Add New Post /wp-admin/post-new.php1,529 ▲718.23 ▼4.96611.81 ▲9.4145.29 ▲1.28
Media Library /wp-admin/upload.php1,388 ▲34.23 ▲0.0696.13 ▼2.8344.00 ▲0.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_icecast-widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/icecast-now-playing/icecast-now-playing.php:32

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: icecast, multimedia

icecast-now-playing/icecast-now-playing.php Passed 13 tests

"Icecast Now Playing" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
46 characters long description:
A widget to display Icecast server statistics.

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 detected225 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15077225

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png13.05KB5.33KB▼ 59.16%