68% wp-voice

Code Review | WP Voice

WordPress plugin WP Voice scored 68% from 54 tests.

About plugin

  • Plugin page: wp-voice
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 5.9.2
  • First release: Nov 3, 2020
  • Latest release: Mar 3, 2022
  • Number of updates: 22
  • Update frequency: every 22.3 days
  • Top authors: dna88 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active / 1,927 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.09MB] [CPU: ▼291.43ms] Passed 4 tests

A check of server-side resources used by WP Voice
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1056.32 ▲6.15
Dashboard /wp-admin3.52 ▲0.1246.38 ▲13.42
Posts /wp-admin/edit.php3.75 ▲0.1140.13 ▲3.55
Add New Post /wp-admin/post-new.php7.01 ▲0.0498.60 ▼1,174.29
Media Library /wp-admin/upload.php3.41 ▲0.1128.42 ▼1.12
Voice Forms /wp-admin/edit.php?post_type=voicemssg_form_qcwp3.4528.81
Voice Records /wp-admin/edit.php?post_type=qcvoicemsg_record3.4628.88
Settings /wp-admin/edit.php?post_type=qcvoicemsg_record&page=qcld_wpvm_vmwpmdp_voicemssg_settings3.7127.97
Help /wp-admin/edit.php?post_type=qcvoicemsg_record&page=wpvoicemessage_help3.4324.85

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2,369 new files
Database: no new tables, 1 new option
New WordPress options
qcld_wpvm_vmwpmdp_wpvoicemessage_send_action_install

Browser metrics Passed 4 tests

An overview of browser requirements for WP Voice
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,977 ▲22316.66 ▲1.148.72 ▲1.982.01 ▼1.10
Dashboard /wp-admin2,974 ▲1136.03 ▼0.23115.34 ▼13.50234.78 ▲76.90
Posts /wp-admin/edit.php2,783 ▲893.25 ▲0.0268.31 ▲3.99188.23 ▲42.82
Add New Post /wp-admin/post-new.php1,700 ▲3220.82 ▲2.81430.63 ▲29.01158.84 ▲7.79
Media Library /wp-admin/upload.php1,776 ▲785.58 ▲0.03143.75 ▲3.98231.99 ▲41.90
Voice Forms /wp-admin/edit.php?post_type=voicemssg_form_qcwp1,4413.1658.84124.01
Voice Records /wp-admin/edit.php?post_type=qcvoicemsg_record1,4853.1658.78139.37
Settings /wp-admin/edit.php?post_type=qcvoicemsg_record&page=qcld_wpvm_vmwpmdp_voicemssg_settings1,7385.7699.29137.05
Help /wp-admin/edit.php?post_type=qcvoicemsg_record&page=wpvoicemessage_help1,1832.4155.69135.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wp-voice/uninstall.php+112
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 1 option
    • qcld_wpvm_vmwpmdp_wpvoicemessage_send_action_install

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-voice/includes/QuantumCloud/QCvoicemssg/include/help.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-voice/includes/QuantumCloud/QCvoicemssg/include/pricing.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-voice/modules/cf7/cf7.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-voice/modules/cf7/cf7-voicemessage-create.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=voicemssg_form_qcwp
    • > Network (severe)
    wp-content/plugins/wp-voice/js/admin-wpvoicemessage-forms.js?ver=1.0.6 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: voice message, voice, contact form 7, voice mail, cf7

wp-voice/wpvoicemessage.php 85% from 13 tests

"WP Voice" version 1.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-voice.php" instead of "wpvoicemessage.php")
  • Requires PHP: Required version must match the one declared in readme.txt ("5.6" instead of "5.7")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected59,644 lines of code in 2,292 files:
LanguageFilesBlank linesComment linesLines of code
SVG2,246043629,051
JSON30015,720
CSS111,0396779,610
PHP182,0752,4403,840
JavaScript144738151,423

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity30.07
▷ Minimum class complexity3.00
▷ Maximum class complexity109.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes1386.67%
Methods222
▷ Static methods3616.22%
▷ Public methods13058.56%
▷ Protected methods00.00%
▷ Private methods9241.44%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants6
▷ Global constants116.67%
▷ Class constants583.33%
▷ Public constants5100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
34 PNG files occupy 0.90MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/pricing-box-icon-03.png.png2.23KB2.27KB0.00%
images/ss/ss11.png51.26KB25.91KB▼ 49.46%
images/screenshot-14.png30.09KB11.17KB▼ 62.87%
images/pricing-box-icon-02.png.png2.97KB2.96KB0.20%
images/screenshot-8.png23.73KB8.08KB▼ 65.93%