84% simple-audioplayer

Code Review | Simple-Audioplayer

WordPress plugin Simple-Audioplayer scored84%from 54 tests.

About plugin

  • Plugin page: simple-audioplayer
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 6.3.1
  • First release: May 9, 2020
  • Latest release: Jun 5, 2020
  • Number of updates: 6
  • Update frequency: every 4.5 days
  • Top authors: flomei (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,080 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

This is a short check of server-side resources used by Simple-Audioplayer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.34 ▼0.97
Dashboard /wp-admin3.32 ▲0.0149.11 ▼8.62
Posts /wp-admin/edit.php3.37 ▲0.0149.78 ▼22.52
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.92 ▼7.55
Media Library /wp-admin/upload.php3.24 ▲0.0154.15 ▲16.42

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple-Audioplayer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.36 ▼0.042.13 ▲0.2438.85 ▼8.34
Dashboard /wp-admin2,198 ▲215.63 ▼0.0286.22 ▼6.5740.09 ▼1.38
Posts /wp-admin/edit.php2,100 ▼32.04 ▲0.0235.38 ▼5.1138.32 ▲3.30
Add New Post /wp-admin/post-new.php1,535 ▲918.16 ▼5.21640.79 ▼57.7769.86 ▲13.42
Media Library /wp-admin/upload.php1,400 ▲34.36 ▲0.13105.79 ▼2.7344.82 ▼2.92

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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-audioplayer/simple-audioplayer.php:62

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: media, audioplayer, mediaplayer, audio

simple-audioplayer/simple-audioplayer.php Passed 13 tests

"Simple-Audioplayer" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
121 characters long description:
Creates a simple audioplayer based on a shortcode, which looks somewhat nicer than the default media player of WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin223 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2208114
PHP16957
CSS20052

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions2
▷ Named functions2100.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
PNG images were not found in this plugin