84% meks-audio-player

Code Review | Meks Audio Player

WordPress plugin Meks Audio Player scored84%from 54 tests.

About plugin

  • Plugin page: meks-audio-player
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Sep 2, 2019
  • Latest release: Sep 11, 2023
  • Number of updates: 24
  • Update frequency: every 61.7 days
  • Top authors: mekshq (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active /25,348 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.09MB] [CPU: ▼7.00ms] Passed 4 tests

A check of server-side resources used by Meks Audio Player
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0942.22 ▲3.23
Dashboard /wp-admin3.40 ▲0.0553.93 ▼7.60
Posts /wp-admin/edit.php3.52 ▲0.1646.59 ▼3.82
Add New Post /wp-admin/post-new.php6.01 ▲0.1192.07 ▼14.69
Media Library /wp-admin/upload.php3.33 ▲0.0935.22 ▼1.88
Meks Audio Player /wp-admin/options-general.php?page=meks-audio-player3.3032.45

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Meks Audio Player: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,018 ▲25714.23 ▼0.1218.62 ▲16.9542.33 ▲2.56
Dashboard /wp-admin2,215 ▲355.90 ▲0.2295.53 ▲11.5141.37 ▼1.08
Posts /wp-admin/edit.php2,125 ▲252.29 ▲0.3139.43 ▲5.4034.49 ▼2.44
Add New Post /wp-admin/post-new.php6,218 ▲4,69221.27 ▼1.84844.27 ▲138.0746.10 ▼5.63
Media Library /wp-admin/upload.php1,417 ▲204.40 ▲0.20100.25 ▼1.9742.34 ▼2.40
Meks Audio Player /wp-admin/options-general.php?page=meks-audio-player1,1352.5948.0128.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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 fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/meks-audio-player/inc/player.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meks-audio-player/inc/register-blocks.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: podcast, radio, block, audio, player...

meks-audio-player/meks-audio-player.php Passed 13 tests

The main file in "Meks Audio Player" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
113 characters long description:
Easily enhance your podcasts, music or any audio files with a full-featured and customizable sticky audio player.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin8,552 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript71,599717,268
CSS314720810
PHP5215149457
SVG10017

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity37.00
▷ Minimum class complexity37.00
▷ Maximum class complexity37.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods13.85%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected