84% the-free-musician-player

Code Review | thefreemusician

WordPress plugin thefreemusician scored 84% from 54 tests.

About plugin

  • Plugin page: the-free-musician...
  • Plugin version: 0.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.4.2
  • WordPress version: 6.3.1
  • First release: Aug 29, 2013
  • Latest release: Apr 3, 2016
  • Number of updates: 7
  • Update frequency: every 135.4 days
  • Top authors: robert.kay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,570 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.20MB] [CPU: ▼3.55ms] Passed 4 tests

An overview of server-side resources used by thefreemusician
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1828.80 ▼11.80
Dashboard /wp-admin3.51 ▲0.2146.78 ▼4.22
Posts /wp-admin/edit.php3.64 ▲0.2848.40 ▼1.30
Add New Post /wp-admin/post-new.php6.10 ▲0.2195.77 ▲3.14
Media Library /wp-admin/upload.php3.43 ▲0.2137.82 ▲4.64
Artists /wp-admin/edit.php?post_type=artist3.4944.18
Add New /wp-admin/post-new.php?post_type=album3.6450.20
Add New /wp-admin/post-new.php?post_type=song3.6349.96
Albums /wp-admin/edit.php?post_type=album3.4936.64
Songs /wp-admin/edit.php?post_type=song3.4935.92
TFM Player /wp-admin/options-general.php?page=TFM_Player3.4031.99
Add New /wp-admin/post-new.php?post_type=artist3.5851.40

Server storage [IO: ▲0.03MB] [DB: ▲0.01MB] 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, 13 new options
New WordPress options
TFM_Player_playhtml
TFM_Player_id
TFM_Player_stophtml
widget_recent-comments
can_compress_scripts
TFM_Player_menu
TFM_Player_enable_ajax
widget_theysaidso_widget
TFM_Player_fade
db_upgraded
...

Browser metrics Passed 4 tests

thefreemusician: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,984 ▲24913.77 ▼0.888.83 ▲6.7140.14 ▼7.60
Dashboard /wp-admin2,294 ▲1035.86 ▼0.04106.03 ▼9.2243.49 ▼5.66
Posts /wp-admin/edit.php2,174 ▲882.03 ▲0.0339.45 ▲3.4434.33 ▼2.18
Add New Post /wp-admin/post-new.php1,591 ▲7723.06 ▲5.47576.02 ▼144.6654.18 ▲3.57
Media Library /wp-admin/upload.php1,473 ▲824.20 ▼0.0193.29 ▼8.7642.28 ▼1.36
Artists /wp-admin/edit.php?post_type=artist1,1102.0131.2829.59
Add New /wp-admin/post-new.php?post_type=album2,5467.79178.1764.93
Add New /wp-admin/post-new.php?post_type=song2,5437.66172.0955.70
Albums /wp-admin/edit.php?post_type=album1,1131.9630.2130.29
Songs /wp-admin/edit.php?post_type=song1,1031.9832.8128.13
TFM Player /wp-admin/options-general.php?page=TFM_Player9362.0423.7927.65
Add New /wp-admin/post-new.php?post_type=artist2,5037.60162.3153.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/the-free-musician-player/thefreemusician.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === the-free-musician-player === )
The official readme.txt might help

the-free-musician-player/thefreemusician.php 92% from 13 tests

The primary PHP file in "thefreemusician" version 0.6.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("the-free-musician-player.php" instead of "thefreemusician.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin658 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP210860652
CSS1006

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity8.50
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions33
▷ Named functions33100.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
There were not PNG files found in your plugin