88% podinbox-accept-voice-messages-on-your-website

Code Review | PodInbox - Accept Voice Messages on Your Website

WordPress plugin PodInbox - Accept Voice Messages on Your Website scored88%from 54 tests.

About plugin

  • Plugin page: podinbox-accept-v...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.0
  • WordPress version: 6.3.1
  • First release: Apr 8, 2022
  • Latest release: Jun 9, 2022
  • Number of updates: 14
  • Update frequency: every 5.1 days
  • Top authors: podinbox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /993 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by PodInbox - Accept Voice Messages on Your Website
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.47 ▼10.40
Dashboard /wp-admin3.33 ▼0.0257.56 ▼4.17
Posts /wp-admin/edit.php3.44 ▲0.0852.50 ▲3.99
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.61 ▼21.60
Media Library /wp-admin/upload.php3.25 ▲0.0242.81 ▲7.73
PodInbox /wp-admin/options-general.php?page=podinbox-settings3.2734.01

Server storage [IO: ▲0.18MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
podinbox_floating_button_widget_settings
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by PodInbox - Accept Voice Messages on Your Website
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.34 ▼0.011.76 ▼0.0942.68 ▼0.95
Dashboard /wp-admin2,201 ▲245.54 ▼0.1196.88 ▲6.2141.83 ▼1.75
Posts /wp-admin/edit.php2,103 ▲31.99 ▲0.0437.34 ▼3.4034.82 ▼1.94
Add New Post /wp-admin/post-new.php1,540 ▲1423.11 ▲0.22658.36 ▲25.3454.38 ▲0.51
Media Library /wp-admin/upload.php1,403 ▲34.20 ▼0.0697.57 ▼6.6345.13 ▲2.23
PodInbox /wp-admin/options-general.php?page=podinbox-settings1,0342.0431.4445.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 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 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Contributors: Please add at least on tag
  • Contributors: Plugin contributors not specified
  • Tags: You are using too many tags: 14 tag instead of maximum 10
Please take inspiration from this readme.txt

podinbox-accept-voice-messages-on-your-website/podinbox.php 77% from 13 tests

The main file in "PodInbox - Accept Voice Messages on Your Website" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("podinbox-accept-voice-messages-on-your-website.php" instead of "podinbox.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,185 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP15149452525
CSS27718491
JavaScript24151169

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods25
▷ Static methods416.00%
▷ Public methods2496.00%
▷ Protected methods00.00%
▷ Private methods14.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
4 PNG files occupy 0.09MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/dist/images/cross.png1.71KB0.37KB▼ 78.23%
assets/dist/images/podinbox-floating-widget.png47.46KB14.40KB▼ 69.66%
assets/dist/images/podinbox-logo-red.png44.03KB13.17KB▼ 70.08%
assets/dist/images/check-icon.png1.76KB0.42KB▼ 76.33%