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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.20ms] Passed 4 tests
Server-side resources used by Gateway for CBK Al-Tijari KNET
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.49 ▼3.52 |
Dashboard /wp-admin | 3.33 ▼0.02 | 52.17 ▼14.64 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 51.18 ▲2.81 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 86.49 ▼15.23 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.53 ▲0.58 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_cbk_knet_transactions |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
cbk_knet_db_version |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gateway for CBK Al-Tijari KNET
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲41 | 14.63 ▲1.41 | 1.62 ▼2.78 | 41.80 ▼2.58 |
Dashboard /wp-admin | 2,205 ▲25 | 5.55 ▲0.03 | 88.14 ▼5.99 | 41.62 ▲0.00 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.04 ▲0.01 | 39.55 ▲2.50 | 37.88 ▲0.91 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 23.65 ▲0.52 | 693.80 ▲9.89 | 54.25 ▲2.07 |
Media Library /wp-admin/upload.php | 1,410 ▲13 | 4.28 ▲0.04 | 98.71 ▼19.43 | 48.29 ▲1.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_cbk_knet_transactions
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- cbk_knet_db_version
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #1, #10, #12, #13, #14, #15, #16, #17, #2, #3, #4, #5, #6, #7, #8, #9 in wc-cbk/assets to your readme.txt
wc-cbk/index.php 92% from 13 tests
The principal PHP file in "Gateway for CBK Al-Tijari KNET" v. 1.6.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wc-cbk.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,223 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 220 | 234 | 1,923 |
HTML | 5 | 12 | 0 | 185 |
Markdown | 1 | 39 | 0 | 77 |
SVG | 1 | 0 | 1 | 38 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 57.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 110.00 |
Average method complexity | 4.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 5 | 8.33% |
▷ Public methods | 49 | 81.67% |
▷ Protected methods | 3 | 5.00% |
▷ Private methods | 8 | 13.33% |
Functions | 17 | |
▷ Named functions | 14 | 82.35% |
▷ Anonymous functions | 3 | 17.65% |
Constants | 25 | |
▷ Global constants | 1 | 4.00% |
▷ Class constants | 24 | 96.00% |
▷ Public constants | 24 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/knet-logo-50.png | 2.45KB | 1.74KB | ▼ 29.01% |
assets/tpay-logo-100.png | 4.61KB | 2.41KB | ▼ 47.64% |
assets/knet-logo.png | 10.11KB | 4.81KB | ▼ 52.46% |
assets/cbk-logo.png | 11.17KB | 8.99KB | ▼ 19.58% |