68% audio-editor-recorder

Code Review | Audio Editor & Recorder

WordPress plugin Audio Editor & Recorder scored68%from 54 tests.

About plugin

  • Plugin page: audio-editor-reco...
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 27, 2022
  • Latest release: Jan 29, 2023
  • Number of updates: 12
  • Update frequency: every 20.7 days
  • Top authors: rolandito-bcn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,734 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.32MB] [CPU: ▼2.25ms] Passed 4 tests

A check of server-side resources used by Audio Editor & Recorder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.38232.45 ▲194.17
Dashboard /wp-admin3.59 ▲0.2945.86 ▼0.50
Posts /wp-admin/edit.php3.69 ▲0.3451.37 ▲5.92
Add New Post /wp-admin/post-new.php6.31 ▲0.4286.39 ▼12.82
Media Library /wp-admin/upload.php3.51 ▲0.2935.68 ▼1.60
Add New /wp-admin/post-new.php?post_type=audio6.3082.70
All Audio /wp-admin/edit.php?post_type=audio3.5634.87
Audio categories /wp-admin/edit-tags.php?taxonomy=audios&post_type=audio3.5133.49

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: 1 new table, 8 new options
New tables
wp_gsp_audio_config
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
api_ext
widget_recent-posts
db_upgraded
api_url

Browser metrics Passed 4 tests

Checking browser requirements for Audio Editor & Recorder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲21213.68 ▼0.6210.01 ▲8.1942.50 ▲1.57
Dashboard /wp-admin2,256 ▲714.86 ▼0.9699.73 ▼9.3138.54 ▼5.18
Posts /wp-admin/edit.php2,142 ▲532.05 ▲0.0140.66 ▼1.2635.23 ▼0.85
Add New Post /wp-admin/post-new.php1,557 ▲3623.38 ▲0.04624.94 ▼58.4055.43 ▲2.85
Media Library /wp-admin/upload.php1,432 ▲474.23 ▼0.07105.96 ▲2.3543.83 ▼2.05
Add New /wp-admin/post-new.php?post_type=audio6,49120.06911.3343.31
All Audio /wp-admin/edit.php?post_type=audio1,1541.9536.0532.43
Audio categories /wp-admin/edit-tags.php?taxonomy=audios&post_type=audio1,3152.1627.2229.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie tables detected upon uninstall: 1 table
    • wp_gsp_audio_config
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • db_upgraded
    • api_url
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • api_ext
    • widget_theysaidso_widget

Smoke tests 50% 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/audio-editor-recorder/templates/single-audio.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/audio-editor-recorder/frontend/gsp-functions.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/audio-editor-recorder/templates/archive-audio.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/audio-editor-recorder/frontend/gsp-edit-audio.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/audio-editor-recorder/frontend/user_audio_edit_form.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/audio-editor-recorder/admin/audio_editor_settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/audio-editor-recorder/frontend/gsp-all-my-list.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/audio-editor-recorder/audio-editor-recorder.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/audio-editor-recorder/frontend/gsp-all-audio-list.php:29

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/post-new.php?post_type=audio
    • > Javascript (severe) in unknown
    /wp-admin/post-new.php?post_type=audio 1345:27 Uncaught TypeError: Cannot read properties of undefined (reading 'getUserMedia')

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: These screenshots need descriptions #10, #11, #2, #3, #4, #5, #6, #7, #8, #9 in audio-editor-recorder/assets to your readme.txt
The official readme.txt might help

audio-editor-recorder/audio-editor-recorder.php Passed 13 tests

The main PHP script in "Audio Editor & Recorder" version 2.1.0 is automatically included on every request by WordPress
131 characters long description:
Record, upload and edit audio files and posts from your dashboard or from the frontend. Use audios as native Wordpress mp3 objects.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin13,120 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript53,4801,09710,651
PHP107,4921,0761,722
CSS31,79113747

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
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%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/glyphicons-halflings.png13.50KB10.35KB▼ 23.34%
(invalid) images/default_avater.png1.49KB0.00KB▼ 100.00%
images/glyphicons-halflings-white.png8.57KB9.20KB0.00%