90% woo-mobikwik

Code Review | VP Mobikwik For Woocommerce

WordPress plugin VP Mobikwik For Woocommerce scored90%from 54 tests.

About plugin

  • Plugin page: woo-mobikwik
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.3
  • WordPress version: 6.3.1
  • First release: Mar 7, 2020
  • Latest release: Mar 7, 2020
  • Number of updates: 3
  • Update frequency: every 33.3 days
  • Top authors: vinitp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /433 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼11.39ms] Passed 4 tests

An overview of server-side resources used by VP Mobikwik For Woocommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.09 ▼1.62
Dashboard /wp-admin3.36 ▲0.0150.63 ▼13.99
Posts /wp-admin/edit.php3.47 ▲0.1149.71 ▼6.56
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.75 ▼20.95
Media Library /wp-admin/upload.php3.28 ▲0.0533.92 ▼4.04

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by VP Mobikwik For Woocommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.30 ▲0.081.71 ▼0.0342.64 ▼0.01
Dashboard /wp-admin2,198 ▲185.59 ▼0.0887.99 ▼0.0838.90 ▼3.49
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0340.65 ▲3.7335.34 ▲0.27
Add New Post /wp-admin/post-new.php1,549 ▲2323.30 ▲5.78652.52 ▼43.7162.00 ▼0.87
Media Library /wp-admin/upload.php1,394 ▼64.19 ▼0.0697.08 ▼30.3647.61 ▼3.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 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 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
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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: woocommerce, mobikwik, payment

woo-mobikwik/woo-mobikwik.php 92% from 13 tests

"VP Mobikwik For Woocommerce" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
No dangerous file extensions were detected356 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP8148306356

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity4.40
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.85
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods20
▷ Static methods210.00%
▷ Public methods1470.00%
▷ Protected methods420.00%
▷ Private methods210.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants111.11%
▷ Class constants888.89%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin