10% speak-sound-library

Code Review | Speak Sound Library

WordPress plugin Speak Sound Library scored 10% from 54 tests.

About plugin

  • Plugin page: speak-sound-library
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-4.1
  • WordPress version: 6.3.1
  • First release: Feb 17, 2015
  • Latest release: Mar 12, 2015
  • Number of updates: 12
  • Update frequency: every 2.3 days
  • Top authors: vince.cimo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,183 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/speak-sound-library/includes/class-speak-sound-library.php+136
    require_once(wp-content/plugins/speak-sound-library/public/class-speak-sound-library-public.php): failed to open stream: No such file or directory

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

Server-side resources used by Speak Sound Library
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.79 ▼4.58
Dashboard /wp-admin3.31 ▲0.0043.81 ▼3.82
Posts /wp-admin/edit.php3.36 ▲0.0046.81 ▼0.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.63 ▼10.35
Media Library /wp-admin/upload.php3.23 ▲0.0037.33 ▲4.79

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

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

Browser metrics Passed 4 tests

Speak Sound Library: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.56 ▼0.821.76 ▼0.2141.04 ▲1.36
Dashboard /wp-admin2,206 ▲155.90 ▲1.00107.96 ▲5.7440.18 ▼6.71
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0340.24 ▼1.1434.90 ▼3.08
Add New Post /wp-admin/post-new.php1,514 ▼2017.53 ▼5.53666.09 ▲68.1555.01 ▲3.79
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.0595.45 ▼3.0741.64 ▼0.06

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      require_once(wp-content/plugins/speak-sound-library/admin/libs/getid3/getid3.php): failed to open stream: No such file or directory in wp-content/plugins/speak-sound-library/admin/speak-sound-library-mp3-parser.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/speak-sound-library/admin/libs/multiple-post-thumbnails/multi-post-thumbnails.php:454
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/speak-sound-library/admin/libs/getid3/getid3.php' (include_path='.:/usr/share/php') in wp-content/plugins/speak-sound-library/admin/speak-sound-library-mp3-parser.php on line 9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: html5, library, music, itunes, sound...

speak-sound-library/speak-sound-library.php Passed 13 tests

The main PHP file in "Speak Sound Library" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
86 characters long description:
This plugin allows you to manage sounds and display them with a frontend HTML5 player.

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 detected1,262 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP163387551,020
JavaScript33115213
PO File14629
CSS1040

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity10.20
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods75
▷ Static methods810.67%
▷ Public methods6789.33%
▷ Protected methods00.00%
▷ Private methods810.67%
Functions6
▷ Named functions6100.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
No PNG files were detected