64% easy-waveform-player

Code Review | Easy Waveform Player

WordPress plugin Easy Waveform Player scored64%from 54 tests.

About plugin

  • Plugin page: easy-waveform-player
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6.2
  • WordPress version: 6.3.1
  • First release: Oct 13, 2020
  • Latest release: Feb 26, 2021
  • Number of updates: 9
  • Update frequency: every 15.3 days
  • Top authors: tymotey (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,051 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.01ms] Passed 4 tests

Server-side resources used by Easy Waveform Player
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.00 ▼2.20
Dashboard /wp-admin3.36 ▲0.0647.24 ▼0.09
Posts /wp-admin/edit.php3.41 ▲0.0548.07 ▼5.16
Add New Post /wp-admin/post-new.php5.94 ▲0.0596.79 ▼0.59
Media Library /wp-admin/upload.php3.28 ▲0.0539.70 ▲4.04

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Easy Waveform Player
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲3513.17 ▼1.454.30 ▲2.0441.53 ▼6.53
Dashboard /wp-admin2,230 ▲304.86 ▼0.06111.25 ▲4.8744.10 ▲1.38
Posts /wp-admin/edit.php2,107 ▲72.02 ▼0.0339.80 ▼2.0339.20 ▼0.87
Add New Post /wp-admin/post-new.php1,551 ▲2523.18 ▲5.62651.16 ▼16.3756.53 ▼1.20
Media Library /wp-admin/upload.php1,409 ▲94.26 ▲0.00109.42 ▲10.2944.14 ▼1.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/easy-waveform-player/uninstall.php+17
    Undefined variable: easywaveformplayer
  • This plugin has failed uninstalling correctly, leaving 37 files (0.18MB) in the plugin directory
    • (new file) assets/js/index.php
    • (new file) assets/images/index.php
    • (new file) easy-waveform-player.php
    • (new file) assets/js/wavesurfer-cursor.js
    • (new file) assets/css/bundle.css
    • (new file) assets/js/bundle.js
    • (new file) includes/class-easywaveformplayer-settings.php
    • (new file) assets/index.php
    • (new file) assets/js/wavesurfer.js
    • (new file) assets/css/index.php
    • ...
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • recovery_mode_email_last_sent
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 9× PHP files output text when accessed directly:
    • > /wp-content/plugins/easy-waveform-player/includes/integrations/class-easywaveformplayer-integrations.php
    • > /wp-content/plugins/easy-waveform-player/easy-waveform-player.php
    • > /wp-content/plugins/easy-waveform-player/includes/integrations/builders/class-easywaveformplayer-integrations-elementor.php
    • > /wp-content/plugins/easy-waveform-player/libs/wp-plugin-settings/class-wp-plugin-settings.php
    • > /wp-content/plugins/easy-waveform-player/includes/integrations/builders/class-easywaveformplayer-integrations-gutenberg.php
    • > /wp-content/plugins/easy-waveform-player/includes/class-easywaveformplayer-settings.php
    • > /wp-content/plugins/easy-waveform-player/includes/integrations/builders/Elementor/class-ewfp-integrations-easywaveformplayer-block.php
    • > /wp-content/plugins/easy-waveform-player/includes/class-easywaveformplayer.php
    • > /wp-content/plugins/easy-waveform-player/includes/integrations/builders/class-easywaveformplayer-integrations-wpbvc.php

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 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (15 tag instead of maximum 10)
The official readme.txt is a good inspiration

easy-waveform-player/easy-waveform-player.php 92% from 13 tests

Analyzing the main PHP file in "Easy Waveform Player" version 1.1.1
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin2,183 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP111986461,587
JavaScript66961591
CSS5005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity23.38
▷ Minimum class complexity3.00
▷ Maximum class complexity67.00
Average method complexity3.89
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods62
▷ Static methods812.90%
▷ Public methods5283.87%
▷ Protected methods34.84%
▷ Private methods711.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin