Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼13.34ms] Passed 4 tests
An overview of server-side resources used by Woocommerce - Xendit
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 35.02 ▼5.22 |
Dashboard /wp-admin | 3.42 ▲0.07 | 44.73 ▼25.23 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 46.25 ▼0.95 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 81.25 ▼21.96 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 33.54 ▲0.21 |
Server storage [IO: ▲1.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 159 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Woocommerce - Xendit
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.29 ▼0.06 | 1.76 ▼0.00 | 36.62 ▼7.51 |
Dashboard /wp-admin | 2,195 ▲20 | 5.61 ▲0.03 | 93.45 ▼18.90 | 38.59 ▼10.19 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.01 | 38.63 ▼1.06 | 34.98 ▼2.47 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 25.17 ▲2.01 | 616.39 ▼67.99 | 68.04 ▲14.67 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.16 ▼0.06 | 94.61 ▼3.21 | 44.36 ▲4.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== woo-xendit-virtual-accounts ===
) - Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
- Donate link: Please fix this invalid URI: "#"
woo-xendit-virtual-accounts/woocommerce-xendit-pg.php 92% from 13 tests
The main PHP script in "Woocommerce - Xendit" version 4.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-xendit-virtual-accounts.php" instead of "woocommerce-xendit-pg.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin8,872 lines of code in 150 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 95 | 1,608 | 1,345 | 7,999 |
JavaScript | 3 | 78 | 51 | 328 |
YAML | 4 | 0 | 30 | 212 |
PO File | 1 | 62 | 0 | 138 |
SVG | 44 | 0 | 0 | 87 |
CSS | 1 | 10 | 0 | 84 |
Markdown | 1 | 8 | 0 | 16 |
JSON | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 12.94 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 199.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 53 | 100.00% |
▷ Final classes | 1 | 1.89% |
Methods | 278 | |
▷ Static methods | 32 | 11.51% |
▷ Public methods | 249 | 89.57% |
▷ Protected methods | 20 | 7.19% |
▷ Private methods | 9 | 3.24% |
Functions | 26 | |
▷ Named functions | 18 | 69.23% |
▷ Anonymous functions | 8 | 30.77% |
Constants | 141 | |
▷ Global constants | 3 | 2.13% |
▷ Class constants | 138 | 97.87% |
▷ Public constants | 138 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/xendit.png | 0.97KB | 0.72KB | ▼ 25.20% |
assets/images/cc.png | 25.49KB | 10.54KB | ▼ 58.66% |