78% mix-master

Code Review | TechGasp Mix Master

WordPress plugin TechGasp Mix Master scored 78% from 54 tests.

About plugin

  • Plugin page: mix-master
  • Plugin version: 5.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 6.3.1
  • First release: Sep 10, 2015
  • Latest release: Mar 11, 2021
  • Number of updates: 28
  • Update frequency: every 71.8 days
  • Top authors: TechGasp (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 9,972 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by TechGasp Mix Master
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0540.21 ▼0.78
Dashboard /wp-admin3.35 ▲0.0548.20 ▼2.39
Posts /wp-admin/edit.php3.40 ▲0.0548.28 ▼0.04
Add New Post /wp-admin/post-new.php5.93 ▲0.0594.40 ▲4.04
Media Library /wp-admin/upload.php3.28 ▲0.0537.34 ▼0.93
Mix Master /wp-admin/admin.php?page=mix-master3.2631.10
Add-ons /wp-admin/admin.php?page=mix-master-admin-addons3.2932.79

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_mix_master_widget_basic
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by TechGasp Mix Master
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲9113.22 ▼1.361.83 ▼0.0443.04 ▼3.62
Dashboard /wp-admin2,217 ▲264.92 ▲0.01101.92 ▼16.8178.72 ▲30.37
Posts /wp-admin/edit.php2,118 ▲291.97 ▼0.0240.41 ▲1.0234.77 ▲1.83
Add New Post /wp-admin/post-new.php1,536 ▲122.90 ▼0.11717.98 ▲52.9547.62 ▼11.20
Media Library /wp-admin/upload.php1,417 ▲324.13 ▼0.2096.47 ▼18.9373.26 ▲23.54
Mix Master /wp-admin/admin.php?page=mix-master1,7607.65196.5490.80
Add-ons /wp-admin/admin.php?page=mix-master-admin-addons1,0612.0527.4833.67

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
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_mix_master_widget_basic
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

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 everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/mix-master/includes/mix-master-admin-addons-table.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/mix-master/includes/mix-master-admin-table-news.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/mix-master/includes/mix-master-admin.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/mix-master/includes/mix-master-admin-addons.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/mix-master/includes/mix-master-admin-table-header.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mix-master/mix-master.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mix-master/includes/mix-master-widget-basic.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=mix-master
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/admin.php?page=mix-master
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
    • > GET request to /wp-admin/admin.php?page=mix-master
    • > Deprecation (warning) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/yX/r/aHGdUlnkmHl.js?_nc_x=Ij3Wp8lg5Kz 271 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
    • > GET request to /wp-admin/admin.php?page=mix-master
    • > Console-api (severe) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/yX/r/aHGdUlnkmHl.js?_nc_x=Ij3Wp8lg5Kz 60:573 "ErrorUtils caught an error:\n\nCannot listen to an undefined element. [Caught in: Tried to listen to element of type click]\n\nSubsequent non-fatal errors won't be logged; see https://fburl.com/debugjs."

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can look at the official readme.txt

mix-master/mix-master.php Passed 13 tests

The primary PHP file in "TechGasp Mix Master" version 5.1.4 is used by WordPress to initiate all plugin functionality
107 characters long description:
TechGasp Mix Master is the wordpress plugin that you need to display mixcloud real-time streaming services.

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 plugin396 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP82658396

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity3.20
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods9
▷ Static methods222.22%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.28MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/techgasp-hr.png0.94KB0.13KB▼ 86.60%
images/techgasp-admin-addons-shortcodes.png21.28KB20.24KB▼ 4.91%
images/techgasp-admin-addons-updater.png14.03KB13.02KB▼ 7.21%
images/techgasp-admin-addons-widgets.png17.08KB16.02KB▼ 6.22%
images/techgasp-admin-addons-support.png15.84KB14.85KB▼ 6.26%