Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/oll-cielo-checkout/core/CheckRequeriments.php+9
Undefined index: post_type
Server metrics [RAM: ▼1.88MB] [CPU: ▼49.93ms] Passed 4 tests
Analyzing server-side resources used by OLL Cielo Checkout
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.35 | 4.86 ▼33.13 |
Dashboard /wp-admin | 2.14 ▼1.21 | 6.79 ▼51.87 |
Posts /wp-admin/edit.php | 2.14 ▼1.22 | 9.12 ▼34.17 |
Add New Post /wp-admin/post-new.php | 2.14 ▼3.75 | 7.52 ▼80.53 |
Media Library /wp-admin/upload.php | 2.14 ▼1.09 | 6.44 ▼27.37 |
Adicionar /wp-admin/post-new.php?post_type=cielo-payment | 2.83 | 14.50 |
Filiais /wp-admin/edit-tags.php?taxonomy=cielo-filial&post_type=cielo-payment | 2.14 | 6.43 |
Ver tudo /wp-admin/edit.php?post_type=cielo-payment | 2.84 | 15.80 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for OLL Cielo Checkout
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲175 | 13.55 ▼1.25 | 7.81 ▲5.89 | 39.37 ▼2.67 |
Dashboard /wp-admin | 2,246 ▲57 | 5.84 ▼0.10 | 103.20 ▼1.99 | 37.60 ▼3.82 |
Posts /wp-admin/edit.php | 2,134 ▲42 | 2.02 ▲0.03 | 37.69 ▲0.21 | 34.04 ▼3.15 |
Add New Post /wp-admin/post-new.php | 1,555 ▲36 | 23.56 ▲0.70 | 646.96 ▼4.20 | 42.35 ▼12.72 |
Media Library /wp-admin/upload.php | 1,431 ▲43 | 4.22 ▼0.04 | 94.91 ▼2.48 | 42.67 ▲2.11 |
Adicionar /wp-admin/post-new.php?post_type=cielo-payment | 1,540 | 2.57 | 52.23 | 55.36 |
Filiais /wp-admin/edit-tags.php?taxonomy=cielo-filial&post_type=cielo-payment | 1,308 | 2.30 | 26.83 | 29.90 |
Ver tudo /wp-admin/edit.php?post_type=cielo-payment | 1,110 | 1.93 | 30.73 | 29.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/oll-cielo-checkout/core/CheckRequeriments.php+9
Undefined index: post_type
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=cielo-payment
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method CheckRequeriments::loadAjaxPlugin() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=cielo-payment
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/oll-cielo-checkout/core/CheckRequeriments.php+9
Undefined index: post_type
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/oll-cielo-checkout/core/Translate.php:27
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=cielo-payment
- > Network (severe)
wp-content/plugins/cielo-checkout-oll/assets/js/animatedModal/css/animate.min.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=cielo-payment
- > Network (severe)
wp-content/plugins/cielo-checkout-oll/assets/js/cielo-checkout.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=cielo-payment
- > Network (severe)
wp-content/plugins/cielo-checkout-oll/assets/js/animatedModal/js/animatedModal.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: credit card, cielo api, cielo, checkout, cielo checkout...
oll-cielo-checkout/cielo-checkout.php 85% from 13 tests
The main file in "OLL Cielo Checkout" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("oll-cielo-checkout.php" instead of "cielo-checkout.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 268 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected902 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 78 | 80 | 717 |
JavaScript | 4 | 36 | 36 | 148 |
CSS | 2 | 3 | 5 | 24 |
SVG | 2 | 0 | 1 | 13 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 3.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 7 | 38.89% |
▷ Public methods | 15 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 16.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.58MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-5.png | 125.74KB | 36.16KB | ▼ 71.24% |
assets/icon-128x128.png | 22.23KB | 8.03KB | ▼ 63.91% |
assets/banner-772x25.png | 44.53KB | 16.00KB | ▼ 64.07% |
assets/screenshot-3.png | 87.22KB | 24.36KB | ▼ 72.07% |
assets/screenshot-2.png | 134.19KB | 37.00KB | ▼ 72.43% |