78% somali-music

Code Review | Somali music

WordPress plugin Somali music scored78%from 54 tests.

About plugin

  • Plugin page: somali-music
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.5
  • WordPress version: 6.3.1
  • First release: Jun 3, 2017
  • Latest release: Jun 5, 2017
  • Number of updates: 10
  • Update frequency: every 0.3 days
  • Top authors: maalmo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /775 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
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.19ms] Passed 4 tests

This is a short check of server-side resources used by Somali music
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.21 ▼3.22
Dashboard /wp-admin3.37 ▲0.0656.15 ▲4.81
Posts /wp-admin/edit.php3.48 ▲0.1247.52 ▲0.33
Add New Post /wp-admin/post-new.php5.96 ▲0.0885.39 ▼20.50
Media Library /wp-admin/upload.php3.29 ▲0.0637.01 ▲2.65

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Somali music
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,276 ▲53013.68 ▼1.0711.10 ▲9.4456.65 ▲15.60
Dashboard /wp-admin2,229 ▲384.86 ▼1.04109.41 ▲7.0641.02 ▼4.83
Posts /wp-admin/edit.php2,109 ▲172.04 ▼0.0041.43 ▼3.7937.03 ▲1.41
Add New Post /wp-admin/post-new.php1,531 ▲1117.58 ▼5.76662.07 ▲51.5167.51 ▲14.59
Media Library /wp-admin/upload.php1,411 ▲234.23 ▲0.01100.67 ▼3.2943.68 ▼2.78

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% 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)
Good news, no errors were detected

SRP 0% 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
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/somali-music/admin/partials/somali-music-admin-display.php
    • > /wp-content/plugins/somali-music/public/partials/somali-music-public-display.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/somali-music/admin/class-somali-music-admin.php:106
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/somali-music/public/class-somali-music-public.php:107

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

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Donate link: Please fix this invalid URI: "masuul.com"
The official readme.txt might help

somali-music/somali-music.php Passed 13 tests

"Somali music" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
139 characters long description:
Its adds your website Somali musics with nice player you will get hottest new somali from masuul.com and you don't need to add any music .

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected291 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12158530284
JavaScript24546
CSS2041

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity1.29
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.09
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png6.21KB2.95KB▼ 52.44%