90% media-player-style-kit

Code Review | Media Player Style Kit

WordPress plugin Media Player Style Kit scored90%from 54 tests.

About plugin

  • Plugin page: media-player-styl...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0
  • WordPress version: 6.3.1
  • First release: Nov 5, 2015
  • Latest release: Dec 5, 2018
  • Number of updates: 16
  • Update frequency: every 70.4 days
  • Top authors: hlashbrooke (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

800+ active /11,036 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.01MB] [CPU: ▼3.57ms] Passed 4 tests

Analyzing server-side resources used by Media Player Style Kit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.72 ▼0.45
Dashboard /wp-admin3.31 ▲0.0144.98 ▼5.80
Posts /wp-admin/edit.php3.37 ▲0.0147.33 ▲0.25
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.48 ▼8.18
Media Library /wp-admin/upload.php3.24 ▲0.0133.16 ▲0.17

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
media_player_style_kit_version

Browser metrics Passed 4 tests

A check of browser resources used by Media Player Style Kit
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲7313.20 ▼1.161.93 ▲0.1440.14 ▼9.36
Dashboard /wp-admin2,206 ▲174.86 ▼1.01104.83 ▼19.0240.69 ▼6.64
Posts /wp-admin/edit.php2,089 ▼32.02 ▲0.0135.93 ▼3.8629.95 ▼9.31
Add New Post /wp-admin/post-new.php1,549 ▲1623.09 ▼0.04598.17 ▼67.7050.54 ▼12.34
Media Library /wp-admin/upload.php1,388 ▼34.28 ▲0.0497.73 ▼0.9541.18 ▼0.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • media_player_style_kit_version
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

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

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: There are too many tags (13 tag instead of maximum 10)
You can take inspiration from this readme.txt

media-player-style-kit/media-player-style-kit.php Passed 13 tests

This is the main PHP file of "Media Player Style Kit" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
74 characters long description:
Change the colors of the WordPress media player right from the Customizer.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin213 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP354152151
JavaScript29054
CSS1008

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected