Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.96ms] Passed 4 tests
A check of server-side resources used by Shuftipro KYC
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 44.25 ▲3.04 |
Dashboard /wp-admin | 3.33 ▲0.02 | 48.06 ▼7.00 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 53.54 ▼1.70 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.53 ▼3.56 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.76 ▲0.42 |
Server storage [IO: ▲1.28MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 41 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_kyc_verification |
payloadsetting |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Shuftipro KYC
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲177 | 13.48 ▼0.87 | 8.39 ▲6.64 | 41.83 ▼8.02 |
Dashboard /wp-admin | 2,221 ▲47 | 5.72 ▲0.15 | 83.96 ▼20.31 | 97.68 ▲54.71 |
Posts /wp-admin/edit.php | 2,147 ▲44 | 2.05 ▲0.06 | 36.93 ▼0.03 | 40.14 ▲2.66 |
Add New Post /wp-admin/post-new.php | 1,562 ▲34 | 23.10 ▲0.04 | 681.56 ▲6.54 | 49.68 ▼4.59 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.28 ▲0.10 | 101.47 ▼5.00 | 76.64 ▲33.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 2 tables in the database
- payloadsetting
- wp_kyc_verification
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 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 0% from 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/shuftipro-kyc-identity-verification/public/partials/shuftipro-kyc-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/shuftipro-kyc-identity-verification/admin/partials/shuftipro-kyc-admin-display.php:60
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 27 tag instead of maximum 10
shuftipro-kyc-identity-verification/shuftipro-kyc.php 77% from 13 tests
The main PHP file in "Shuftipro KYC" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("shuftipro-kyc-identity-verification.php" instead of "shuftipro-kyc.php")
- 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
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
Everything looks great! No dangerous files found in this plugin2,449 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 233 | 678 | 1,444 |
CSS | 2 | 161 | 66 | 855 |
SVG | 8 | 10 | 6 | 143 |
JavaScript | 3 | 6 | 57 | 7 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.53MB with 0.19MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/img-model.png | 248.38KB | 71.09KB | ▼ 71.38% |
admin/images/kyc-banner.png | 298.22KB | 321.78KB | 0.00% |