83% ableplayer

Code Review | Able Player, accessible HTML5 media player

WordPress plugin Able Player, accessible HTML5 media player scored83%from 54 tests.

About plugin

  • Plugin page: ableplayer
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Nov 21, 2019
  • Latest release: Nov 22, 2023
  • Number of updates: 5
  • Update frequency: every 292.6 days
  • Top authors: terrillthompson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,734 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.53ms] Passed 4 tests

Server-side resources used by Able Player, accessible HTML5 media player
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0733.73 ▼1.61
Dashboard /wp-admin3.37 ▲0.0645.70 ▼5.68
Posts /wp-admin/edit.php3.42 ▲0.0647.26 ▼1.70
Add New Post /wp-admin/post-new.php5.95 ▲0.0690.39 ▼0.14
Media Library /wp-admin/upload.php3.29 ▲0.0633.50 ▼1.12

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Able Player, accessible HTML5 media player
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲14213.53 ▼1.1911.52 ▲9.9736.66 ▼1.55
Dashboard /wp-admin2,195 ▲185.62 ▼0.0199.00 ▲3.0243.44 ▲0.65
Posts /wp-admin/edit.php2,103 ▲31.94 ▲0.0039.82 ▼2.1535.16 ▼2.95
Add New Post /wp-admin/post-new.php1,535 ▲925.05 ▲1.98597.94 ▲0.7366.59 ▲19.72
Media Library /wp-admin/upload.php1,400 ▲34.18 ▼0.0394.72 ▼6.3242.68 ▼0.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ableplayer/ableplayer.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 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
5 plugin tags: media, html5, accessibility, audio, video

ableplayer/ableplayer.php 77% from 13 tests

Analyzing the main PHP file in "Able Player, accessible HTML5 media player" version 1.2.0
Please make the necessary changes and fix the following:
  • Domain Path: The domain path should use only dashes and lowercase characters ("lang")
  • Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)
  • Domain Path: Prefix the domain path with a forward slash character ("/lang")

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
Good job! No executable or dangerous file extensions detected57,205 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript239,2999,38153,437
CSS54912353,266
PHP121113346
SVG200156

PHP code Passed 2 tests

This is a short overview 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.60
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
59 PNG files occupy 0.49MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
button-icons/black/fullscreen-collapse.png0.29KB0.24KB▼ 18.21%
button-icons/black/ellipsis.png0.16KB0.14KB▼ 8.64%
button-icons/white/rabbit.png0.40KB0.33KB▼ 16.59%
button-icons/black/forward.png0.22KB0.18KB▼ 16.14%
button-icons/black/volume-loud.png0.39KB0.31KB▼ 21.30%