90% its-migs

Code Review | Its Migs

WordPress plugin Its Migs scored 90% from 54 tests.

About plugin

  • Plugin page: its-migs
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 2, 2018
  • Latest release: Mar 26, 2020
  • Number of updates: 17
  • Update frequency: every 59.4 days
  • Top authors: itsrashad (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active / 2,411 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.09ms] Passed 4 tests

A check of server-side resources used by Its Migs
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.88 ▼8.99
Dashboard /wp-admin3.31 ▲0.0045.71 ▼5.19
Posts /wp-admin/edit.php3.36 ▲0.0049.59 ▲0.90
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.19 ▲2.96
Media Library /wp-admin/upload.php3.23 ▲0.0034.37 ▲0.91

Server storage [IO: ▲0.12MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Its Migs
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.35 ▼0.922.02 ▲0.5544.27 ▼0.00
Dashboard /wp-admin2,206 ▲184.86 ▼1.03108.06 ▼2.3837.87 ▼9.17
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0036.51 ▼5.2534.64 ▼8.73
Add New Post /wp-admin/post-new.php1,514 ▼517.46 ▼5.76671.34 ▼3.1056.78 ▼4.42
Media Library /wp-admin/upload.php1,388 ▼34.17 ▼0.0595.53 ▼5.1440.01 ▼4.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: mastercard internet gateway service, axis bank, visa mastercard plugin, payment gateway, migs payment gateway integration with woocommerce...

its-migs/itsmigs.php 92% from 13 tests

The main PHP file in "Its Migs" ver. 2.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("its-migs.php" instead of "itsmigs.php")

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
There were no executable files found in this plugin408 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27529408

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity65.00
▷ Minimum class complexity65.00
▷ Maximum class complexity65.00
Average method complexity5.92
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods969.23%
▷ Protected methods00.00%
▷ Private methods430.77%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.10MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/its-migs.png103.37KB10.22KB▼ 90.11%