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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.64ms] Passed 4 tests
A check of server-side resources used by Appmax WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.53 ▼6.74 |
Dashboard /wp-admin | 3.34 ▼0.00 | 46.45 ▼13.92 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 51.30 ▲4.32 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 84.23 ▼17.02 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.47 ▼0.86 |
Server storage [IO: ▲1.73MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 92 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Appmax WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.20 ▼1.17 | 1.60 ▼0.13 | 39.88 ▼4.73 |
Dashboard /wp-admin | 2,218 ▲30 | 5.84 ▲0.97 | 103.77 ▼1.31 | 39.72 ▼0.20 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 1.99 ▼0.17 | 41.93 ▲5.10 | 36.38 ▲1.91 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 23.21 ▲4.96 | 672.94 ▲23.29 | 55.32 ▼3.38 |
Media Library /wp-admin/upload.php | 1,400 ▲15 | 4.30 ▲0.09 | 96.01 ▼4.84 | 40.55 ▼3.91 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to a member function get_meta() on null in wp-content/plugins/appmax-woocommerce/templates/views/checkout/pix/pix-payment.php:2
- > PHP Notice
Undefined variable: order in wp-content/plugins/appmax-woocommerce/templates/views/checkout/pix/pix-payment.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: woocommerce, appmax, payment
appmax-woocommerce/appmax-woocommerce.php Passed 13 tests
"Appmax WooCommerce" version 2.0.46's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
45 characters long description:
Gateway de pagamento AppMax para WooCommerce.
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
Everything looks great! No dangerous files found in this plugin11,884 lines of code in 79 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 765 | 386 | 2,835 |
SVG | 1 | 0 | 0 | 2,671 |
CSS | 5 | 11 | 18 | 2,413 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
JavaScript | 11 | 85 | 11 | 439 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 8.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 28 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 160 | |
▷ Static methods | 60 | 37.50% |
▷ Public methods | 115 | 71.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 45 | 28.12% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 65 | |
▷ Global constants | 1 | 1.54% |
▷ Class constants | 64 | 98.46% |
▷ Public constants | 64 | 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
4 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/card_helper/creditcard_name.png | 35.17KB | 14.77KB | ▼ 58.00% |
assets/images/card_helper/creditcard_number.png | 35.11KB | 14.81KB | ▼ 57.83% |
assets/images/card_helper/creditcard_date.png | 35.14KB | 14.76KB | ▼ 58.00% |
assets/images/card_helper/cvv.png | 12.13KB | 5.57KB | ▼ 54.07% |