Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.52ms] Passed 4 tests
Server-side resources used by MOBIKA
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.79 ▼0.65 |
Dashboard /wp-admin | 3.37 ▲0.02 | 50.66 ▼15.22 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 52.30 ▲0.57 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 102.04 ▼6.02 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.01 ▼0.19 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
kasscloud_incoming_order_status |
kasscloud_payment_gateway |
can_compress_scripts |
kasscloud_timeout |
kasscloud_api_url |
theysaidso_admin_options |
kasscloud_delivery_vat |
db_upgraded |
... |
Browser metrics Passed 4 tests
Checking browser requirements for MOBIKA
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 13.61 ▼0.69 | 1.57 ▼0.13 | 40.56 ▼8.58 |
Dashboard /wp-admin | 2,220 ▲32 | 5.82 ▲0.91 | 93.41 ▼18.23 | 78.98 ▲38.08 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.00 ▼0.03 | 38.96 ▲3.97 | 36.91 ▲1.53 |
Add New Post /wp-admin/post-new.php | 1,524 ▲5 | 23.22 ▲0.03 | 661.27 ▲7.60 | 57.08 ▲2.72 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.31 ▲0.13 | 127.29 ▲31.73 | 81.45 ▲40.99 |
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 13 options in the database
- kasscloud_timeout
- db_upgraded
- kasscloud_api_url
- can_compress_scripts
- kasscloud_product_vat
- widget_recent-comments
- widget_recent-posts
- kasscloud_payment_gateway
- widget_theysaidso_widget
- kasscloud_incoming_order_status
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Interface 'Mobika\\Api\\Sender' not found in wp-content/plugins/mobika/includes/sender.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mobika\\Api\\BaseClient' not found in wp-content/plugins/mobika/sdk/src/Api/OrderClient.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mobika/kasscloud.php:14
- > 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, but this is not an exhaustive test
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
3 plugin tags: ecommerce, woocommerce, woo commerce
mobika/kasscloud.php 92% from 13 tests
The main PHP file in "MOBIKA" ver. 1.0.4 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: Please rename the main PHP file in this plugin to the plugin slug ("mobika.php" instead of "kasscloud.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
No dangerous file extensions were detected521 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 65 | 8 | 508 |
make | 1 | 3 | 0 | 8 |
Markdown | 1 | 3 | 0 | 5 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 7.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 1 | 20.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 30 | 93.75% |
▷ Protected methods | 1 | 3.12% |
▷ Private methods | 1 | 3.12% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon.png | 0.37KB | 0.41KB | 0.00% |