73% inbox-for-woocommerce

Code Review | Inbox For WooCommerce

WordPress plugin Inbox For WooCommerce scored73%from 54 tests.

About plugin

  • Plugin page: inbox-for-woocomm...
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Dec 24, 2022
  • Latest release: Oct 23, 2023
  • Number of updates: 9
  • Update frequency: every 33.9 days
  • Top authors: kingdijk (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,716 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.36MB] [CPU: ▲0.17ms] Passed 4 tests

Server-side resources used by Inbox For WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.91 ▲0.4541.25 ▲2.32
Dashboard /wp-admin3.65 ▲0.3553.05 ▲3.33
Posts /wp-admin/edit.php3.75 ▲0.3953.57 ▲6.82
Add New Post /wp-admin/post-new.php6.25 ▲0.3786.97 ▼11.79
Media Library /wp-admin/upload.php3.58 ▲0.3540.80 ▲11.31

Server storage [IO: ▲2.98MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 74 new files
Database: 5 new tables, 7 new options
New tables
wp_woocommerce_inbox_ticket_threads
wp_woocommerce_inbox_ticket_attachments
wp_woocommerce_inbox_users
wp_woocommerce_inbox_ticket_products
wp_woocommerce_inbox_tickets
New WordPress options
woocommerce_inbox_db_version
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Inbox For WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.40 ▲0.132.07 ▲0.4437.03 ▼3.16
Dashboard /wp-admin2,204 ▲275.57 ▼0.0383.26 ▼3.6140.11 ▼6.58
Posts /wp-admin/edit.php2,109 ▲91.99 ▼0.0434.57 ▼5.1736.73 ▲1.35
Add New Post /wp-admin/post-new.php1,535 ▲923.28 ▼0.07663.17 ▲75.0666.33 ▲19.24
Media Library /wp-admin/upload.php1,412 ▲124.15 ▼0.04102.46 ▲8.2045.11 ▲5.22

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 5 tables
    • wp_woocommerce_inbox_ticket_threads
    • wp_woocommerce_inbox_tickets
    • wp_woocommerce_inbox_users
    • wp_woocommerce_inbox_ticket_products
    • wp_woocommerce_inbox_ticket_attachments
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • woocommerce_inbox_db_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/inbox-for-woocommerce/inbox-for-woocommerce.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% 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 your attention:
  • Screenshots: These screenshots do not have images: #3 (https://sweito.com/wp-content/uploads/2022/12/Screenshot-2022-11-07-at-02.05.25-resized.png), #4 (https://sweito.com/wp-content/uploads/2022/12/Screenshot-2022-11-07-at-16.01.16.png), #5 (https://sweito.com/wp-content/uploads/2023/10/Screenshot-2023-10-21-at-17.24.55.png), #6 (https://sweito.com/wp-content/uploads/2023/10/Screenshot-2023-10-21-at-17.26.03.png)
The official readme.txt might help

inbox-for-woocommerce/inbox-for-woocommerce.php 85% from 13 tests

The principal PHP file in "Inbox For WooCommerce" v. 1.0.7 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 253 characters long)
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin9,636 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
PHP351,0921,2085,405
PO File37721,0381,756
JavaScript2195281,403
CSS2175451,059
JSON1007
SVG4004
Markdown1002

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.36
Average class complexity19.18
▷ Minimum class complexity1.00
▷ Maximum class complexity142.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes33
▷ Abstract classes00.00%
▷ Concrete classes33100.00%
▷ Final classes00.00%
Methods233
▷ Static methods17876.39%
▷ Public methods21491.85%
▷ Protected methods00.00%
▷ Private methods198.15%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants96
▷ Global constants66.25%
▷ Class constants9093.75%
▷ Public constants90100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 2.24MB with 1.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/a0.png15.62KB6.62KB▼ 57.64%
assets/images/pdf-icon.png26.76KB11.00KB▼ 58.90%
assets/images/chat-icon-option-2.png5.50KB5.49KB0.11%
assets/images/upgrade.png88.48KB31.69KB▼ 64.19%
assets/images/default-product-img.png20.62KB11.52KB▼ 44.14%