90% sark-migs

Code Review | Sark Migs

WordPress plugin Sark Migs scored90%from 54 tests.

About plugin

  • Plugin page: sark-migs
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-5.4.2
  • WordPress version: 6.3.1
  • First release: Nov 22, 2014
  • Latest release: Aug 5, 2020
  • Number of updates: 19
  • Update frequency: every 109.6 days
  • Top authors: mycholan (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /3,333 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.14ms] Passed 4 tests

Analyzing server-side resources used by Sark Migs
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.00 ▼2.33
Dashboard /wp-admin3.38 ▲0.0846.15 ▼3.89
Posts /wp-admin/edit.php3.44 ▲0.0843.81 ▼0.77
Add New Post /wp-admin/post-new.php5.97 ▲0.0881.00 ▼5.57
Media Library /wp-admin/upload.php3.31 ▲0.0735.20 ▼0.13

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Sark Migs: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.042.03 ▲0.3944.22 ▲0.31
Dashboard /wp-admin2,192 ▲185.61 ▲0.0193.76 ▲6.6841.67 ▼2.45
Posts /wp-admin/edit.php2,103 ▲62.01 ▲0.0034.62 ▼2.2033.29 ▼5.18
Add New Post /wp-admin/post-new.php1,526 ▼223.54 ▲0.30657.57 ▼43.2259.86 ▼1.63
Media Library /wp-admin/upload.php1,400 ▲34.22 ▲0.0196.87 ▼5.5741.07 ▼2.41

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: axis bank, visa mastercard gateway plugin, mastercard internet gateway service, payment gateway, migs payment gateway integration with woocommerce...

sark-migs/sarkmigs.php 92% from 13 tests

This is the main PHP file of "Sark Migs" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sark-migs.php" instead of "sarkmigs.php")

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 detected338 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15620338

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
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
There were not PNG files found in your plugin