68% edisound-player

Code Review | Edisound Player

WordPress plugin Edisound Player scored68%from 54 tests.

About plugin

  • Plugin page: edisound-player
  • Plugin version: 0.1.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: May 18, 2023
  • Latest release: May 18, 2023
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: ernadoo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /79 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.90MB] [CPU: ▼49.97ms] Passed 4 tests

A check of server-side resources used by Edisound Player
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.68 ▲0.08
Dashboard /wp-admin2.05 ▼1.266.78 ▼43.03
Posts /wp-admin/edit.php2.05 ▼1.316.71 ▼42.80
Add New Post /wp-admin/post-new.php2.05 ▼3.846.35 ▼89.79
Media Library /wp-admin/upload.php2.05 ▼1.185.25 ▼24.25

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_edisoud_widget
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Edisound Player
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.75 ▲0.391.85 ▼0.0743.30 ▼2.18
Dashboard /wp-admin2,194 ▲235.52 ▲0.0198.75 ▼5.2643.70 ▼0.54
Posts /wp-admin/edit.php2,108 ▲82.00 ▲0.0435.94 ▼0.8231.88 ▼2.99
Add New Post /wp-admin/post-new.php6,370 ▲4,84427.71 ▲4.60916.19 ▲271.7739.17 ▼9.89
Media Library /wp-admin/upload.php1,402 ▲24.19 ▲0.04102.61 ▲5.4172.18 ▲29.66

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the edisound-player-init handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_edisoud_widget
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/edisound-player/edisound.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Edisound\\PlayerPlugin\\Block\\add_action() in wp-content/plugins/edisound-player/includes/block.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Edisound\\PlayerPlugin\\ShortCode\\add_shortcode() in wp-content/plugins/edisound-player/includes/shortcode.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/edisound-player/includes/widget.php:8

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

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: player, edisound

edisound-player/edisound.php 85% from 13 tests

Analyzing the main PHP file in "Edisound Player" version 0.1.2
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("edisound-player.php" instead of "edisound.php")

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 plugin230 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP54146119
JavaScript27543
PO File191541
JSON30027

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions666.67%
▷ Anonymous functions333.33%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/js/img/edisound.png2.58KB1.22KB▼ 52.57%