84% alex-player

Code Review | Alex Player

WordPress plugin Alex Player scored 84% from 54 tests.

About plugin

  • Plugin page: alex-player
  • Plugin version: 1.34
  • PHP compatiblity: 5.3.13+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.6
  • WordPress version: 5.8.1
  • First release: Dec 23, 2019
  • Latest release: Jan 24, 2021
  • Number of updates: 71
  • Update frequency: every 5.6 days
  • Top authors: iamzhirik (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active / 3,084 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.84MB] [CPU: ▼191.06ms] Passed 4 tests

Analyzing server-side resources used by Alex Player
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.79 ▼0.935.34 ▼17.16
Dashboard /wp-admin1.81 ▼1.255.60 ▼39.62
Posts /wp-admin/edit.php1.81 ▼1.305.56 ▼37.61
Add New Post /wp-admin/post-new.php1.81 ▼3.625.40 ▼654.82
Media Library /wp-admin/upload.php1.81 ▼1.205.79 ▼32.17

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Alex Player
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,826 ▲23016.93 ▲1.2214.25 ▲4.5452.14 ▲4.75
Dashboard /wp-admin2,973 ▲396.16 ▲0.04140.02 ▼6.79114.03 ▲7.58
Posts /wp-admin/edit.php2,742 ▲33.01 ▲0.3366.94 ▼2.4491.14 ▼4.05
Add New Post /wp-admin/post-new.php1,895 ▲22316.00 ▼2.86377.22 ▲21.87135.41 ▲27.65
Media Library /wp-admin/upload.php1,813 ▲65.35 ▲0.35131.54 ▼29.99122.93 ▲2.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5663
    wp_enqueue_style 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 media_engine_styles handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/alex-player/alex-player.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots lack descriptions #2, #3, #4 in alex-player/assets to your readme.txt
The official readme.txt is a good inspiration

alex-player/alex-player.php Passed 13 tests

"Alex Player" version 1.34's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
26 characters long description:
Audio Player for Wordpress

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
Everything looks great! No dangerous files found in this plugin345 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2754270
PHP118874
CSS1011

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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