88% woocommerce-mis-report

Code Review | WooCommerce Sales MIS Report

WordPress plugin WooCommerce Sales MIS Report scored88%from 54 tests.

About plugin

  • Plugin page: woocommerce-mis-r...
  • Plugin version: 4.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.x-6.1.0
  • WordPress version: 6.3.1
  • First release: Feb 7, 2014
  • Latest release: Feb 20, 2023
  • Number of updates: 120
  • Update frequency: every 27.5 days
  • Top authors: infosoftplugin (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

300+ active /29,012 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.02MB] [CPU: ▼3.77ms] Passed 4 tests

This is a short check of server-side resources used by WooCommerce Sales MIS Report
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.98 ▼4.02
Dashboard /wp-admin3.32 ▲0.0247.91 ▲0.59
Posts /wp-admin/edit.php3.44 ▲0.0845.72 ▼1.67
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.03 ▼9.97
Media Library /wp-admin/upload.php3.25 ▲0.0237.68 ▲1.15
Other Plug-ins /wp-admin/admin.php?page=wcismis_add_ons_page3.2730.68
MIS Report /wp-admin/admin.php?page=wcismis_page3.2242.71

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Sales MIS Report
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲11914.74 ▼0.012.02 ▲0.4044.50 ▲4.97
Dashboard /wp-admin2,238 ▲505.85 ▲0.96105.84 ▼4.6283.71 ▲43.22
Posts /wp-admin/edit.php2,120 ▲312.04 ▲0.0534.13 ▼6.1232.67 ▼3.62
Add New Post /wp-admin/post-new.php1,694 ▲15222.38 ▲3.98705.03 ▲96.7748.20 ▼9.18
Media Library /wp-admin/upload.php1,417 ▲294.20 ▲0.02114.49 ▲17.1146.01 ▲2.91
Other Plug-ins /wp-admin/admin.php?page=wcismis_add_ons_page1,1342.1323.9043.38
MIS Report /wp-admin/admin.php?page=wcismis_page1,9183.47119.2361.87

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 76% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: You are using too many tags: 16 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (Sales Summary on Dashboard), #2 (Graphical presentation of Last 7 Day Sales report), #3 (Graphical presentation of Top 5 Products report), #4 (Daily, weekly, monthly and yearly sales count and amount), #5 (Top 5 Category (total order count and amount)), #6 (Top 5 Billing country (total order count and amount)), #7 (Top 5 customer (Customer billing first name, billing email address, order count and total customer order amount)), #8 (Recent order list (Order ID, Order Date, Billing email, First Name, order Item Count and amount))
You can take inspiration from this readme.txt

woocommerce-mis-report/woocommerce_ic_mis_report.php 62% from 13 tests

This is the main PHP file of "WooCommerce Sales MIS Report" version 4.0.3, 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:
  • Domain Path: The domain path folder does not exist ("/languages/")
  • Description: The description should be shorter than 140 characters (currently 206 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-mis-report.php" instead of "woocommerce_ic_mis_report.php")
  • Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "3.5.x")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected3,371 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP4458701,996
CSS1344261,138
JavaScript579204
SVG34033

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity66.50
▷ Minimum class complexity7.00
▷ Maximum class complexity127.00
Average method complexity6.35
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods49
▷ Static methods00.00%
▷ Public methods49100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
28 PNG files occupy 0.90MB with 0.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-5.png29.30KB8.68KB▼ 70.36%
assets/banner-772x250.png233.10KB87.41KB▼ 62.50%
assets/images/icons/refund-icon1.png1.13KB1.09KB▼ 4.22%
assets/images/menu-icon.png0.46KB0.28KB▼ 39.53%
screenshot-1.png48.46KB13.31KB▼ 72.54%