Benchmarks
Plugin footprint 83% 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.01MB] [CPU: ▼3.80ms] Passed 4 tests
This is a short check of server-side resources used by PagaCheckout for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 41.50 ▼2.06 |
Dashboard /wp-admin | 3.32 ▲0.01 | 52.93 ▼1.97 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.47 ▼3.06 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.86 ▼8.10 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.96 ▼1.63 |
Server storage [IO: ▲3.44MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PagaCheckout for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.10 ▼0.25 | 1.67 ▲0.07 | 43.81 ▲6.34 |
Dashboard /wp-admin | 2,205 ▲25 | 5.58 ▼0.06 | 90.78 ▲1.96 | 44.68 ▲1.45 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.04 ▲0.03 | 35.39 ▼2.98 | 35.63 ▼6.31 |
Add New Post /wp-admin/post-new.php | 1,535 ▼1 | 23.01 ▲4.73 | 670.89 ▲17.74 | 68.35 ▼4.70 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.17 ▼0.03 | 97.63 ▼20.19 | 44.04 ▼2.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Requires at least: The plugin version is formatted incorrectly
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
paga-checkout/paga-checkout.php Passed 13 tests
The main file in "PagaCheckout for WooCommerce" v. 2.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
44 characters long description:
Paga Checkout for accepting online payments.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected583 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 174 | 243 | 528 |
JavaScript | 2 | 7 | 7 | 42 |
CSS | 1 | 7 | 0 | 13 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 63.00 |
▷ Minimum class complexity | 63.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 4.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 3.40MB with 1.97MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/paga-checkout-on-checkout-page.png | 37.35KB | 10.42KB | ▼ 72.11% |
assets/images/pay-via-paga.png | 2.95KB | 2.33KB | ▼ 20.85% |
assets/images/pay-with-paga.png | 5.74KB | 2.95KB | ▼ 48.59% |
assets/images/paga-checkout-setting-page.png | 512.08KB | 134.95KB | ▼ 73.65% |
assets/images/paga-checkout-payment-page.png | 2,925.75KB | 766.81KB | ▼ 73.79% |