83% toneden-player-shortcode

Code Review | ToneDen Player Shortcode

WordPress plugin ToneDen Player Shortcode scored83%from 54 tests.

About plugin

  • Plugin page: toneden-player-sh...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.0.1
  • WordPress version: 6.3.1
  • First release: Apr 20, 2014
  • Latest release: Oct 30, 2014
  • Number of updates: 6
  • Update frequency: every 32.2 days
  • Top authors: elsbree (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /4,799 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.52ms] Passed 4 tests

Server-side resources used by ToneDen Player Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.66 ▲3.52
Dashboard /wp-admin3.32 ▲0.0143.86 ▼5.46
Posts /wp-admin/edit.php3.37 ▲0.0143.65 ▼3.48
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.91 ▼6.97
Media Library /wp-admin/upload.php3.24 ▲0.0134.16 ▼2.16

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by ToneDen Player Shortcode
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.21 ▼0.141.60 ▲0.0244.52 ▲4.78
Dashboard /wp-admin2,192 ▲155.56 ▲0.0386.38 ▼0.5937.70 ▼3.21
Posts /wp-admin/edit.php2,100 ▲31.96 ▲0.0032.89 ▼2.7532.06 ▼5.48
Add New Post /wp-admin/post-new.php1,528 ▼023.16 ▲0.14670.45 ▼19.9752.16 ▼0.23
Media Library /wp-admin/upload.php1,400 ▼34.25 ▼0.0395.67 ▼6.2541.84 ▼1.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% 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)
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/toneden-player-shortcode/tonedenplayer-shortcode.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (This is the 'light' theme with the 'bars' visualizer.), #2 (This is the 'aurora' theme.)
Please take inspiration from this readme.txt

toneden-player-shortcode/tonedenplayer-shortcode.php 92% from 13 tests

The principal PHP file in "ToneDen Player Shortcode" v. 0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("toneden-player-shortcode.php" instead of "tonedenplayer-shortcode.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin72 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1162872

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
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 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.89MB with 0.45MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png560.60KB286.11KB▼ 48.96%
screenshot-2.png355.46KB171.25KB▼ 51.82%