84% wavesurfer-wp

Code Review | WaveSurfer-WP

WordPress plugin WaveSurfer-WP scored84%from 54 tests.

About plugin

  • Plugin page: wavesurfer-wp
  • Plugin version: 2.8.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Nov 26, 2015
  • Latest release: Aug 1, 2020
  • Number of updates: 61
  • Update frequency: every 28.0 days
  • Top authors: X-Raym (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

500+ active /16,488 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.13MB] [CPU: ▼7.48ms] Passed 4 tests

Server-side resources used by WaveSurfer-WP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1442.58 ▼3.75
Dashboard /wp-admin3.44 ▲0.1044.07 ▼25.38
Posts /wp-admin/edit.php3.56 ▲0.2048.45 ▼1.75
Add New Post /wp-admin/post-new.php6.02 ▲0.1495.51 ▲0.96
Media Library /wp-admin/upload.php3.37 ▲0.1435.72 ▲4.87
WaveSurfer-WP /wp-admin/options-general.php?page=wavesurfer-wp3.3430.99

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WaveSurfer-WP
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8714.46 ▼0.122.37 ▲0.4345.87 ▲4.94
Dashboard /wp-admin2,213 ▲254.84 ▼0.0499.31 ▲0.1639.12 ▼3.05
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0139.59 ▼0.8137.18 ▲2.46
Add New Post /wp-admin/post-new.php1,540 ▼223.28 ▲5.00592.58 ▼3.6851.35 ▲3.92
Media Library /wp-admin/upload.php1,386 ▼54.23 ▲0.0696.33 ▼10.8641.34 ▼5.87
WaveSurfer-WP /wp-admin/options-general.php?page=wavesurfer-wp1,3562.6351.5631.37

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wavesurfer-wp/wavesurfer-wp.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: The official readme.txt might help

wavesurfer-wp/wavesurfer-wp.php Passed 13 tests

This is the main PHP file of "WaveSurfer-WP" version 2.8.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
137 characters long description:
Customizable HTML5 Audio controller with waveform preview (mixed or split channels), using WordPress native audio and playlist shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin4,355 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript51,0732,1983,437
PHP2212257557
CSS39124361

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity105.00
▷ Minimum class complexity105.00
▷ Maximum class complexity105.00
Average method complexity4.59
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2896.55%
▷ Protected methods00.00%
▷ Private methods13.45%
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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin