90% wafer-audio-free

Code Review | Wafer Audio Free

WordPress plugin Wafer Audio Free scored90%from 54 tests.

About plugin

  • Plugin page: wafer-audio-free
  • Plugin version: 3.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7
  • WordPress version: 6.3.1
  • First release: Apr 15, 2021
  • Latest release: Apr 16, 2021
  • Number of updates: 4
  • Update frequency: every 3.5 days
  • Top authors: allensulzen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /407 total downloads

Benchmarks

Plugin footprint 83% from 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.06MB] [CPU: ▼2.10ms] Passed 4 tests

Server-side resources used by Wafer Audio Free
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.01 ▼3.84
Dashboard /wp-admin3.37 ▲0.0749.08 ▼0.81
Posts /wp-admin/edit.php3.49 ▲0.1353.29 ▲7.08
Add New Post /wp-admin/post-new.php5.95 ▲0.0688.92 ▲1.42
Media Library /wp-admin/upload.php3.27 ▲0.0434.45 ▼5.17

Server storage [IO: ▲0.13MB] [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: 26 new files
Database: no new tables, 7 new options
New WordPress options
wafer_audio_free_obj
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Wafer Audio Free
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,974 ▲23916.61 ▲1.811.98 ▲0.1541.38 ▼9.08
Dashboard /wp-admin2,376 ▲1887.86 ▲2.96161.30 ▲47.4842.63 ▼3.31
Posts /wp-admin/edit.php2,284 ▲1954.95 ▲2.98100.19 ▲61.9435.13 ▼1.07
Add New Post /wp-admin/post-new.php1,540 ▲624.50 ▲1.40619.36 ▼62.1834.83 ▼14.82
Media Library /wp-admin/upload.php1,416 ▲285.10 ▲0.89121.91 ▲14.0342.67 ▲0.01

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: wav, podcast, mp3 player, html5, audio player...

wafer-audio-free/wafer-audio-free.php 92% from 13 tests

The principal PHP file in "Wafer Audio Free" v. 3.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.3" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,815 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
SVG15012550
JavaScript215677513
CSS2325490
PHP612922262

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.51
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin