79% audio-widget

Code Review | Audio Widget

WordPress plugin Audio Widget scored79%from 54 tests.

About plugin

  • Plugin page: audio-widget
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.0-4.7
  • WordPress version: 6.3.1
  • First release: Sep 26, 2016
  • Latest release: Oct 8, 2016
  • Number of updates: 8
  • Update frequency: every 48.4 days
  • Top authors: sinayazdi (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /5,236 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.06MB] [CPU: ▼10.86ms] Passed 4 tests

A check of server-side resources used by Audio Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.19 ▼8.33
Dashboard /wp-admin3.38 ▲0.0348.27 ▼21.75
Posts /wp-admin/edit.php3.50 ▲0.1453.92 ▲3.69
Add New Post /wp-admin/post-new.php5.96 ▲0.0893.21 ▼10.93
Media Library /wp-admin/upload.php3.28 ▲0.0634.39 ▼2.44

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_smy_audio_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Audio Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,950 ▲18914.97 ▲0.621.54 ▼0.3037.27 ▼5.38
Dashboard /wp-admin2,359 ▲1796.50 ▲0.65125.53 ▲37.3138.19 ▼4.72
Posts /wp-admin/edit.php2,287 ▲1873.65 ▲1.7164.99 ▲30.2534.61 ▲0.56
Add New Post /wp-admin/post-new.php1,538 ▲1223.56 ▲0.65607.09 ▼56.8434.15 ▼17.54
Media Library /wp-admin/upload.php1,418 ▲214.44 ▲0.2485.90 ▼8.4939.55 ▼1.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_smy_audio_widget
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/audio-widget/audio-widget.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/audio-widget/inc/class-audio.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: podcasting, widget, audio widget, sidebar, audio...

audio-widget/audio-widget.php Passed 13 tests

The primary PHP file in "Audio Widget" version 0.1 is used by WordPress to initiate all plugin functionality
50 characters long description:
This plugin adds Audio with Poster to your Widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected222 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25046172
JavaScript112550

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity10.25
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin