78% wp-player

Code Review | WP-Player

WordPress plugin WP-Player scored78%from 54 tests.

About plugin

  • Plugin page: wp-player
  • Plugin version: 2.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Feb 18, 2014
  • Latest release: Jun 12, 2017
  • Number of updates: 29
  • Update frequency: every 41.7 days
  • Top authors: jiangyahai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /23,089 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.67MB] [CPU: ▼21.61ms] Passed 4 tests

Analyzing server-side resources used by WP-Player
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.21 ▲2.54
Dashboard /wp-admin3.33 ▼0.0149.26 ▼15.11
Posts /wp-admin/edit.php3.38 ▲0.0346.48 ▼4.34
Add New Post /wp-admin/post-new.php3.18 ▼2.7138.74 ▼67.91
Media Library /wp-admin/upload.php3.25 ▲0.0339.03 ▲0.93

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

WP-Player: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.29 ▼0.068.54 ▲6.6942.86 ▲0.30
Dashboard /wp-admin2,192 ▲155.56 ▼0.1188.20 ▼3.8445.87 ▲2.40
Posts /wp-admin/edit.php2,091 ▼92.31 ▲0.3147.23 ▲7.4840.79 ▲3.88
Add New Post /wp-admin/post-new.php6,371 ▲4,84326.15 ▲3.20931.28 ▲264.66135.20 ▲75.19
Media Library /wp-admin/upload.php1,405 ▲24.36 ▲0.11114.47 ▼4.6652.57 ▲4.24
WP-Player 设置 /wp-admin/player.php260.420.1617.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-player/include/metaboxes.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-player/include/metaboxes.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/player.php
    • > Network (severe)
    wp-admin/player.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: player, qq, wp-player, mp3-player, mp3

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

The principal PHP file in "WP-Player" v. 2.6.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 179 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,500 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP4931231,495
JavaScript34343
CSS20192

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity65.50
▷ Minimum class complexity34.00
▷ Maximum class complexity97.00
Average method complexity3.69
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods48
▷ Static methods00.00%
▷ Public methods2245.83%
▷ Protected methods00.00%
▷ Private methods2654.17%
Functions9
▷ Named functions9100.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
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/default.png1.76KB0.71KB▼ 59.77%
assets/images/wp_player_bg.png2.29KB1.00KB▼ 56.49%
assets/images/wp_player_bg_8.png2.26KB0.86KB▼ 61.78%
assets/images/wp_player_bg2x.png3.80KB2.12KB▼ 44.28%