83% music-reviews

Code Review | Custom Music Review

WordPress plugin Custom Music Review scored 83% from 54 tests.

About plugin

  • Plugin page: music-reviews
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.1.3-4.6.1
  • WordPress version: 6.3.1
  • First release: May 25, 2015
  • Latest release: Nov 28, 2016
  • Number of updates: 11
  • Update frequency: every 68.6 days
  • Top authors: nilesh0308 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 2,151 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.72ms] Passed 4 tests

An overview of server-side resources used by Custom Music Review
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.99 ▼2.54
Dashboard /wp-admin3.33 ▲0.0346.67 ▲1.41
Posts /wp-admin/edit.php3.38 ▲0.0346.25 ▼3.70
Add New Post /wp-admin/post-new.php5.91 ▲0.0391.88 ▼5.63
Media Library /wp-admin/upload.php3.26 ▲0.0334.48 ▲0.98
Genres /wp-admin/edit-tags.php?taxonomy=genres&post_type=music_review3.2530.60
Add New /wp-admin/post-new.php?post_type=music_review3.4150.43
Music Reviews /wp-admin/edit.php?post_type=music_review3.3034.06

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
mrpage
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Custom Music Review
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7714.47 ▼0.171.63 ▼0.5042.73 ▼5.30
Dashboard /wp-admin2,240 ▲524.89 ▼0.00107.20 ▲7.4940.55 ▼2.60
Posts /wp-admin/edit.php2,123 ▲342.00 ▼0.0534.80 ▼6.9134.50 ▲0.33
Add New Post /wp-admin/post-new.php1,568 ▲3218.83 ▼4.44615.15 ▲10.9360.03 ▲11.57
Media Library /wp-admin/upload.php1,419 ▲314.33 ▲0.0393.43 ▼5.5543.57 ▼1.15
Genres /wp-admin/edit-tags.php?taxonomy=genres&post_type=music_review1,2902.1426.1528.33
Add New /wp-admin/post-new.php?post_type=music_review2,7547.74191.0277.72
Music Reviews /wp-admin/edit.php?post_type=music_review1,1321.9530.3728.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • mrpage
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/music-reviews/custom-music-reviews.php:53

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png)
  • Donate link: Invalid URI ("")
The official readme.txt is a good inspiration

music-reviews/custom-music-reviews.php 85% from 13 tests

The main PHP script in "Custom Music Review" version 1.3 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("music-reviews.php" instead of "custom-music-reviews.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)

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
Good job! No executable or dangerous file extensions detected70 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181370

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.22MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png86.40KB27.77KB▼ 67.86%
screenshot-2.png55.75KB17.56KB▼ 68.50%
screenshot-3.png80.77KB25.87KB▼ 67.97%