83% wp-mp3-player

Code Review | WP Mp3 Player

WordPress plugin WP Mp3 Player scored83%from 54 tests.

About plugin

  • Plugin page: wp-mp3-player
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 11, 2015
  • Latest release: Nov 12, 2015
  • Number of updates: 18
  • Update frequency: every 0.4 days
  • Top authors: NeilH (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,904 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.75ms] Passed 4 tests

Analyzing server-side resources used by WP Mp3 Player
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0240.01 ▼2.18
Dashboard /wp-admin3.31 ▲0.0148.80 ▲0.64
Posts /wp-admin/edit.php3.37 ▲0.0143.33 ▼4.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.66 ▼7.89
Media Library /wp-admin/upload.php3.24 ▲0.0135.32 ▼0.58

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_wp_mp3_widget
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WP Mp3 Player
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲17713.65 ▼0.7613.55 ▲11.5443.52 ▼3.42
Dashboard /wp-admin2,206 ▲155.91 ▲0.03127.54 ▲27.5441.91 ▼2.53
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0334.83 ▼0.5935.21 ▼2.89
Add New Post /wp-admin/post-new.php1,535 ▲2123.39 ▲5.88676.23 ▼7.2153.90 ▼3.41
Media Library /wp-admin/upload.php1,388 ▲34.18 ▼0.0594.95 ▼11.1739.43 ▼9.35

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_wp_mp3_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
  • 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/wp-mp3-player/wp-mp3-plugin.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Add descriptions for screenshots #2, #3 in wp-mp3-player/assets to your readme.txt
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wp-mp3-player === )
The official readme.txt might help

wp-mp3-player/wp-mp3-plugin.php 92% from 13 tests

The main PHP file in "WP Mp3 Player" ver. 1.01 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-mp3-player.php" instead of "wp-mp3-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin705 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
SVG100288
CSS2178155
PHP12726154
JavaScript3187108

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity5.25
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
No PNG images were found in this plugin