10% soundpress

Code Review | SoundPress Plugin

WordPress plugin SoundPress Plugin scored10%from 54 tests.

About plugin

  • Plugin page: soundpress
  • Plugin version: 3.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.2
  • WordPress version: 6.3.1
  • First release: Oct 8, 2016
  • Latest release: Oct 10, 2019
  • Number of updates: 27
  • Update frequency: every 40.6 days
  • Top authors: emadmessiha (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

4,000+ active /46,738 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/soundpress/soundpress.php+107
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_soundpress_plugin has a deprecated constructor

Server metrics [RAM: ▼1.89MB] [CPU: ▼54.99ms] Passed 4 tests

A check of server-side resources used by SoundPress Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.364.63 ▼39.61
Dashboard /wp-admin2.12 ▼1.185.76 ▼47.99
Posts /wp-admin/edit.php2.12 ▼1.247.17 ▼44.56
Add New Post /wp-admin/post-new.php2.12 ▼3.775.65 ▼87.81
Media Library /wp-admin/upload.php2.12 ▼1.116.69 ▼28.96

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_wp_soundpress_plugin
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for SoundPress Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▲0.031.58 ▼0.1640.46 ▼4.88
Dashboard /wp-admin2,195 ▲155.52 ▼0.1784.17 ▼18.4340.63 ▼1.64
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.1638.73 ▲2.7834.56 ▼2.69
Add New Post /wp-admin/post-new.php1,530 ▲223.20 ▲0.02689.83 ▲1.9752.37 ▼11.39
Media Library /wp-admin/upload.php1,405 ▲84.21 ▲0.02104.99 ▲4.1047.23 ▲4.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/soundpress/soundpress.php+107
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_soundpress_plugin has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_wp_soundpress_plugin

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/soundpress/soundpress.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: embed, soundcloud

soundpress/soundpress.php 85% from 13 tests

The entry point to "SoundPress Plugin" version 3.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

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
Everything looks great! No dangerous files found in this plugin269 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13530223
JavaScript110046

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity5.75
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
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%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
soundpress-tiny.png0.74KB0.97KB0.00%