Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.53MB] [CPU: ▲0.27ms] Passed 4 tests
An overview of server-side resources used by SimpanKira for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.55 | 43.92 ▼2.12 |
Dashboard /wp-admin | 3.83 ▲0.53 | 50.33 ▲3.60 |
Posts /wp-admin/edit.php | 3.88 ▲0.53 | 54.90 ▲2.31 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.53 | 96.84 ▼2.71 |
Media Library /wp-admin/upload.php | 3.75 ▲0.53 | 45.18 ▲10.57 |
Codestar Framework /wp-admin/tools.php?page=csf-welcome | 3.79 | 41.17 |
Server storage [IO: ▲1.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 143 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
simpankira |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for SimpanKira for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,865 ▲94 | 13.52 ▼0.88 | 4.70 ▲2.56 | 40.11 ▼4.54 |
Dashboard /wp-admin | 2,249 ▲61 | 5.89 ▲0.99 | 111.15 ▼0.07 | 72.66 ▲25.84 |
Posts /wp-admin/edit.php | 2,131 ▲45 | 2.00 ▲0.04 | 39.88 ▲1.92 | 35.77 ▲2.06 |
Add New Post /wp-admin/post-new.php | 1,702 ▲181 | 22.54 ▼0.72 | 657.29 ▼35.78 | 54.75 ▼5.53 |
Media Library /wp-admin/upload.php | 1,431 ▲46 | 4.20 ▲0.05 | 101.89 ▼13.79 | 71.61 ▲22.94 |
Synchronization /wp-admin/admin.php?page=simpankira#tab=synchronization | 1,491 | 4.34 | 80.77 | 112.16 |
Logs /wp-admin/admin.php?page=simpankira#tab=logs | 1,410 | 3.67 | 58.46 | 79.08 |
Codestar Framework /wp-admin/tools.php?page=csf-welcome | 1,457 | 3.70 | 45.04 | 97.15 |
API Credentials /wp-admin/admin.php?page=simpankira#tab=api-credentials | 1,408 | 3.81 | 55.44 | 86.31 |
Account Settings /wp-admin/admin.php?page=simpankira#tab=account-settings | 1,419 | 3.66 | 55.19 | 84.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- simpankira
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
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 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
The SRP test was a success
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=simpankira#tab=synchronization
- > Network (severe)
wp-content/plugins/simpankira-for-woocommerce/assets/css/images/ui-bg_glass_75_e6e6e6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=simpankira#tab=synchronization
- > Network (severe)
wp-content/plugins/simpankira-for-woocommerce/assets/css/images/ui-icons_888888_256x240.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
9 plugin tags: billing, inventory, pos, invoice, payroll...
simpankira-for-woocommerce/simpankira-woocommerce.php 92% from 13 tests
Analyzing the main PHP file in "SimpanKira for WooCommerce" version 1.0.1
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simpankira-for-woocommerce.php" instead of "simpankira-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin16,642 lines of code in 115 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 84 | 2,391 | 1,087 | 9,673 |
PO File | 20 | 3,197 | 3,594 | 6,534 |
Markdown | 2 | 85 | 0 | 379 |
CSS | 5 | 1 | 5 | 52 |
JavaScript | 2 | 2 | 2 | 2 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 18.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 137.00 |
Average method complexity | 5.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 63 | |
▷ Abstract classes | 3 | 4.76% |
▷ Concrete classes | 60 | 95.24% |
▷ Final classes | 0 | 0.00% |
Methods | 249 | |
▷ Static methods | 31 | 12.45% |
▷ Public methods | 216 | 86.75% |
▷ Protected methods | 4 | 1.61% |
▷ Private methods | 29 | 11.65% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/simpankira_icon.png | 0.92KB | 1.01KB | 0.00% |
assets/images/simpankira.png | 1.25KB | 1.39KB | 0.00% |
libraries/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |