84% music-press-quick-playlist

Code Review | Music Press Playlist

WordPress plugin Music Press Playlist scored84%from 54 tests.

About plugin

  • Plugin page: music-press-quick...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.6
  • WordPress version: 6.3.1
  • First release: Jul 4, 2018
  • Latest release: Jul 4, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: tuyennv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /4,114 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.41ms] Passed 4 tests

A check of server-side resources used by Music Press Playlist
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.22 ▼5.49
Dashboard /wp-admin3.33 ▲0.0250.89 ▲0.64
Posts /wp-admin/edit.php3.38 ▲0.0252.54 ▼1.69
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.53 ▼4.72
Media Library /wp-admin/upload.php3.25 ▲0.0237.09 ▼1.75

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Music Press Playlist
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.11 ▼0.271.71 ▼0.5039.84 ▼6.31
Dashboard /wp-admin2,195 ▲215.62 ▼0.0187.37 ▼4.6941.95 ▼4.17
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0136.79 ▼4.3035.80 ▲0.96
Add New Post /wp-admin/post-new.php1,526 ▼222.96 ▼0.26687.41 ▼18.0762.68 ▼8.48
Media Library /wp-admin/upload.php1,400 ▼34.17 ▲0.0196.61 ▼11.7146.75 ▼2.47

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/music-press-quick-playlist/includes/process/setting.php:2

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 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
9 plugin tags: music manager, music store, playlist, media store, audio store...

music-press-quick-playlist/music-press-quick-playlist.php Passed 13 tests

This is the main PHP file of "Music Press Playlist" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
39 characters long description:
Create playlist for Music Press Plugin.

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
Success! There were no dangerous files found in this plugin1,728 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP8168241,229
CSS1500262
JavaScript23014237

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.19
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods1593.75%
▷ Protected methods00.00%
▷ Private methods16.25%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/music-press-playlist.png1.53KB0.73KB▼ 51.92%
assets/images/no_image.png2.20KB1.92KB▼ 12.75%