84% outvoice

Code Review | OutVoice

WordPress plugin OutVoice scored84%from 54 tests.

About plugin

  • Plugin page: outvoice
  • Plugin version: 2.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 9, 2019
  • Latest release: Jun 1, 2023
  • Number of updates: 26
  • Update frequency: every 52.3 days
  • Top authors: misterissa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /3,929 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.06MB] [CPU: ▼10.21ms] Passed 4 tests

Analyzing server-side resources used by OutVoice
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1136.01 ▼1.41
Dashboard /wp-admin3.43 ▲0.0844.36 ▼16.95
Posts /wp-admin/edit.php3.54 ▲0.1947.18 ▲1.24
Add New Post /wp-admin/post-new.php5.32 ▼0.5761.50 ▼23.73
Media Library /wp-admin/upload.php3.35 ▲0.1237.44 ▲3.11
OutVoice /wp-admin/options-general.php?page=outvoice-settings3.2933.54

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

OutVoice: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲4813.27 ▼1.101.73 ▼0.2040.45 ▼1.01
Dashboard /wp-admin2,225 ▲344.94 ▼0.9299.74 ▼8.4083.02 ▲41.73
Posts /wp-admin/edit.php2,111 ▲221.97 ▼0.0633.96 ▼2.2530.51 ▼5.12
Add New Post /wp-admin/post-new.php1,553 ▲2123.99 ▲0.74657.81 ▲10.5632.87 ▼25.51
Media Library /wp-admin/upload.php1,401 ▲164.14 ▼0.10110.55 ▲13.3245.23 ▲3.03
OutVoice /wp-admin/options-general.php?page=outvoice-settings8102.0424.4325.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=outvoice-settings
    • > Notice in wp-content/plugins/outvoice/plugin.php+683
    Trying to access array offset on value of type bool

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
There were not plugin tags detected

outvoice/plugin.php 92% from 13 tests

This is the main PHP file of "OutVoice" version 2.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("outvoice.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected21,356 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript55,5477,59720,328
PHP3113243690
CSS2492338

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions26
▷ Named functions26100.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
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
img/outvoice.png14.67KB6.05KB▼ 58.74%
img/logo_166.png5.65KB2.76KB▼ 51.13%
img/ov.png1.95KB0.94KB▼ 52.02%