84% wp-voice-recorder

Code Review | WP Voice Recorder

WordPress plugin WP Voice Recorder scored 84% from 54 tests.

About plugin

  • Plugin page: wp-voice-recorder
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.6.1
  • WordPress version: 5.8.1
  • First release: Dec 1, 2014
  • Latest release: Oct 3, 2016
  • Number of updates: 29
  • Update frequency: every 23.3 days
  • Top authors: parth.kumar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 5,282 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼140.59ms] Passed 4 tests

This is a short check of server-side resources used by WP Voice Recorder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0636.76 ▲0.50
Dashboard /wp-admin3.11 ▲0.0539.75 ▼7.98
Posts /wp-admin/edit.php3.16 ▲0.0545.41 ▲1.63
Add New Post /wp-admin/post-new.php5.47 ▲0.0497.16 ▼553.98
Media Library /wp-admin/upload.php3.05 ▲0.0527.33 ▼0.89

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

WP Voice Recorder: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,839 ▲24316.50 ▲0.9115.49 ▲5.4247.16 ▼2.17
Dashboard /wp-admin2,987 ▲536.06 ▼0.08158.83 ▲12.71108.12 ▼2.80
Posts /wp-admin/edit.php2,757 ▲212.74 ▲0.0165.71 ▼0.3283.81 ▼8.19
Add New Post /wp-admin/post-new.php1,695 ▲2322.06 ▲3.16274.27 ▼108.53108.70 ▼17.13
Media Library /wp-admin/upload.php1,825 ▲155.12 ▲0.08150.45 ▲5.53119.26 ▼5.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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)
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: file_url in wp-content/plugins/wp-voice-recorder/lib/cmtplayer-interface.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-voice-recorder/lib/cmtplayer-interface.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-voice-recorder/lib/wpvr-voice-meta.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/wp-voice-recorder/lib/wpvr-jplayer-interface.php:2
    • > PHP Notice
      Undefined variable: comment_id in wp-content/plugins/wp-voice-recorder/lib/cmtplayer-interface.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-voice-recorder/lib/wpvr-voice-meta.php:20

User-side errors Passed 1 test

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


Plugin configuration 93% 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: The official readme.txt might help

wp-voice-recorder/wpvr-recorder.php 92% from 13 tests

"WP Voice Recorder" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-voice-recorder.php" instead of "wpvr-recorder.php")

Code Analysis 5% from 3 tests

File types 0% from 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
Please fix the following items
  • Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
    • .as - Adobe Flash ActionScript File in Adobe Flash
      • wp-content/plugins/wp-voice-recorder/lib/flash-fla/Main.as
1,940 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.04
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions15100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
skin/jplayer.blue.monday.video.play.png17.28KB4.28KB▼ 75.21%