Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure had errors
- > User error in wp-content/plugins/woo-instamojo/woo-instamojo.php+60
Instamojo Plugin requires WooCommerce to be installed and activated first!
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.84ms] Passed 4 tests
Server-side resources used by Instamojo for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.95 ▼4.92 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.71 ▼6.17 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.99 ▲1.47 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 91.44 ▼1.73 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 37.80 ▲3.18 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Instamojo for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.22 ▼1.39 | 1.81 ▲0.01 | 38.96 ▼5.97 |
Dashboard /wp-admin | 2,209 ▲21 | 4.88 ▼1.00 | 105.48 ▲2.21 | 43.15 ▲2.26 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.03 ▼0.02 | 38.06 ▲2.95 | 35.13 ▲0.04 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.42 ▲0.82 | 642.12 ▼11.42 | 50.23 ▼8.14 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.23 ▲0.07 | 100.17 ▲1.78 | 44.85 ▲1.88 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
woo-instamojo/woo-instamojo.php Passed 13 tests
The principal PHP file in "Instamojo for WooCommerce" v. 1.1.3 is loaded by WordPress automatically on each request
89 characters long description:
Instamojo Payment Gateway for WooCommerce. Instamojo lets you collect payments instantly.
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
Everything looks great! No dangerous files found in this plugin542 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 101 | 44 | 542 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 7.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 26 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 7.14% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin