94% ableplayer

Code Review | Able Player

WordPress plugin Able Player scored 94% from 54 tests.

About plugin

  • Plugin page: ableplayer
  • Plugin version: 1.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.3
  • WordPress version: 5.9.2
  • First release: Nov 21, 2019
  • Latest release: Nov 22, 2019
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: terrillthompson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,598 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼295.65ms] Passed 4 tests

Analyzing server-side resources used by Able Player
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0155.23 ▲0.41
Dashboard /wp-admin3.41 ▲0.0033.18 ▼53.68
Posts /wp-admin/edit.php3.64 ▲0.0038.85 ▲1.67
Add New Post /wp-admin/post-new.php6.88 ▼0.09111.04 ▼1,127.55
Media Library /wp-admin/upload.php3.29 ▲0.0024.50 ▼1.78

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 84 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Able Player
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,910 ▲16615.71 ▲0.4211.01 ▲4.802.94 ▲0.30
Dashboard /wp-admin2,892 ▲316.15 ▼0.02133.99 ▲0.89150.84 ▼12.15
Posts /wp-admin/edit.php2,694 ▲243.23 ▼0.0366.99 ▼3.31144.69 ▼49.35
Add New Post /wp-admin/post-new.php1,711 ▲2121.35 ▲0.20427.52 ▼25.89192.58 ▲28.92
Media Library /wp-admin/upload.php1,698 ▲35.53 ▲0.06142.62 ▲9.58241.76 ▲50.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ableplayer/ableplayer.php:48

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: video, audio, accessibility, html5, media

ableplayer/ableplayer.php 92% from 13 tests

The main PHP file in "Able Player" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin27,627 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript175,0044,48726,258
CSS2522331,078
SVG200156
PHP12860135

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
57 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
button-icons/white/help.png0.27KB0.25KB▼ 7.53%
button-icons/black/fullscreen-expand.png0.28KB0.24KB▼ 13.54%
button-icons/white/fullscreen-expand.png0.30KB0.24KB▼ 19.16%
button-icons/white/stop.png0.14KB0.13KB▼ 3.55%
button-icons/white/faster.png0.18KB0.16KB▼ 14.81%