Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.49ms] Passed 4 tests
This is a short check of server-side resources used by Cielo WooCommerce - Solução Webservice
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.10 ▲1.43 |
Dashboard /wp-admin | 3.34 ▲0.03 | 44.29 ▼1.01 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 44.35 ▼4.42 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 81.09 ▼5.94 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.60 ▲3.54 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Cielo WooCommerce - Solução Webservice
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.09 ▼0.26 | 1.73 ▲0.19 | 42.43 ▲0.69 |
Dashboard /wp-admin | 2,206 ▲29 | 5.51 ▼0.10 | 82.22 ▼6.47 | 37.58 ▼2.03 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.99 ▲0.00 | 36.27 ▼0.16 | 35.27 ▼2.15 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.05 ▼0.09 | 690.36 ▲14.10 | 54.61 ▲3.59 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.18 ▼0.07 | 100.09 ▼11.35 | 45.47 ▼0.89 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WC_Cielo_Helper' not found in wp-content/plugins/cielo-woocommerce/includes/class-wc-cielo-debit-gateway.php:7
- > PHP Fatal error
Uncaught Error: Class 'WC_Cielo_Helper' not found in wp-content/plugins/cielo-woocommerce/includes/class-wc-cielo-credit-gateway.php:7
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/cielo-woocommerce/includes/class-wc-cielo-helper.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: A description for screenshot #3 is required in cielo-woocommerce/assets to your readme.txt
cielo-woocommerce/cielo-woocommerce.php Passed 13 tests
The main PHP script in "Cielo WooCommerce - Solução Webservice" version 4.0.14 is automatically included on every request by WordPress
77 characters long description:
Works using the Cielo Webservice Solution to receive payments on WooCommerce.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
These items require your attention
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/cielo-woocommerce/includes/certificates/VeriSignClass3PublicPrimaryCertificationAuthority-G5.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 383 | 746 | 1,744 |
PO File | 1 | 128 | 191 | 349 |
JavaScript | 8 | 35 | 35 | 149 |
CSS | 4 | 23 | 0 | 113 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 38.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 83 | |
▷ Static methods | 2 | 2.41% |
▷ Public methods | 61 | 73.49% |
▷ Protected methods | 18 | 21.69% |
▷ Private methods | 4 | 4.82% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/cards.png | 15.53KB | 4.52KB | ▼ 70.86% |
assets/images/elo.png | 1.28KB | 1.29KB | 0.00% |
assets/images/aura.png | 1.68KB | 1.59KB | ▼ 5.57% |