84% wp-mp3-embed

Code Review | WP-MP3 Embed

WordPress plugin WP-MP3 Embed scored84%from 54 tests.

About plugin

  • Plugin page: wp-mp3-embed
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-4.1
  • WordPress version: 6.3.1
  • First release: Feb 27, 2015
  • Latest release: Feb 27, 2015
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: lonuongsalamander (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,053 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.90ms] Passed 4 tests

Analyzing server-side resources used by WP-MP3 Embed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0332.73 ▼3.09
Dashboard /wp-admin3.34 ▼0.0141.82 ▼17.46
Posts /wp-admin/edit.php3.38 ▲0.0348.02 ▲0.06
Add New Post /wp-admin/post-new.php5.91 ▲0.0385.75 ▼11.10
Media Library /wp-admin/upload.php3.26 ▲0.0333.54 ▲4.09

Server storage [IO: ▲0.02MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP-MP3 Embed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,882 ▲14714.46 ▼0.181.79 ▲0.0739.61 ▼1.59
Dashboard /wp-admin2,288 ▲975.82 ▼0.08117.70 ▲12.0044.25 ▲4.27
Posts /wp-admin/edit.php2,173 ▲812.01 ▼0.0239.86 ▲0.4137.56 ▲3.08
Add New Post /wp-admin/post-new.php1,612 ▲7623.15 ▼0.16626.70 ▼38.1062.32 ▲6.29
Media Library /wp-admin/upload.php1,473 ▲854.13 ▼0.0498.37 ▼7.3739.73 ▼7.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mp3-embed/index.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots require images: #3 (`/assets/screenshot-3.jpg`), #4 (`/assets/screenshot-4.jpg`)
The official readme.txt is a good inspiration

wp-mp3-embed/index.php 92% from 13 tests

The main PHP file in "WP-MP3 Embed" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-mp3-embed.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected232 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11213175
CSS10057

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin