74% alex-player

Code Review | Alex Player

WordPress plugin Alex Player scored74%from 54 tests.

About plugin

  • Plugin page: alex-player
  • Plugin version: 1.35
  • PHP compatiblity: 5.3.13+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.0.1
  • WordPress version: 6.3.1
  • First release: Dec 23, 2019
  • Latest release: Jul 29, 2022
  • Number of updates: 73
  • Update frequency: every 13.0 days
  • Top authors: iamzhirik (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /4,756 total downloads

Benchmarks

Plugin footprint 65% 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.93MB] [CPU: ▼54.17ms] Passed 4 tests

Analyzing server-side resources used by Alex Player
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.32 ▼36.73
Dashboard /wp-admin2.09 ▼1.255.27 ▼52.92
Posts /wp-admin/edit.php2.09 ▼1.266.69 ▼33.20
Add New Post /wp-admin/post-new.php2.09 ▼3.795.84 ▼93.82
Media Library /wp-admin/upload.php2.09 ▼1.146.41 ▼24.97

Server storage [IO: ▲0.39MB] [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, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

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 /2,911 ▲15014.03 ▼0.349.57 ▲8.0139.64 ▼8.23
Dashboard /wp-admin2,198 ▲244.95 ▼0.7285.81 ▼13.0541.22 ▼2.11
Posts /wp-admin/edit.php2,088 ▼152.38 ▲0.4134.86 ▼5.3931.51 ▼0.38
Add New Post /wp-admin/post-new.php1,686 ▲15822.88 ▼0.29663.20 ▲78.0536.54 ▼11.29
Media Library /wp-admin/upload.php1,409 ▲154.54 ▲0.34105.79 ▲6.5844.86 ▲0.45

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
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function 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.)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

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.35'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 plugin343 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2754268
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