94% musicacloud-shortcodes

Code Review | MusicaCloud ShortCode

WordPress plugin MusicaCloud ShortCode scored 94% from 54 tests.

About plugin

  • Plugin page: musicacloud-short...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-4.2.2
  • WordPress version: 5.8.1
  • First release: Jul 2, 2015
  • Latest release: Jul 3, 2015
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: musicacloud (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 773 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼141.68ms] Passed 4 tests

An overview of server-side resources used by MusicaCloud ShortCode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1246.54 ▲24.17
Dashboard /wp-admin3.06 ▲0.0047.76 ▲0.12
Posts /wp-admin/edit.php3.11 ▲0.0043.35 ▼1.32
Add New Post /wp-admin/post-new.php5.42 ▼0.0286.84 ▼563.43
Media Library /wp-admin/upload.php3.00 ▲0.0030.77 ▼2.07

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for MusicaCloud ShortCode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.82 ▼0.248.10 ▼3.3050.80 ▲7.12
Dashboard /wp-admin2,967 ▲335.93 ▼0.00144.05 ▼17.43108.55 ▼0.62
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0167.27 ▼2.3783.29 ▲1.29
Add New Post /wp-admin/post-new.php1,504 ▼018.60 ▼0.01420.67 ▲43.32115.21 ▼1.04
Media Library /wp-admin/upload.php1,810 ▲594.99 ▼0.01138.40 ▼19.84118.30 ▲3.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/musicacloud-shortcodes/musicacloud-shortcode.php:17

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: shortcode, musicacloud, music, embed

musicacloud-shortcodes/musicacloud-shortcode.php 92% from 13 tests

The entry point to "MusicaCloud ShortCode" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("musicacloud-shortcodes.php" instead of "musicacloud-shortcode.php")

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
Success! There were no dangerous files found in this plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1288

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected