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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.71MB] [CPU: ▼1.32ms] Passed 4 tests
Analyzing server-side resources used by Pagamento QR Code Ame Digital
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.21 ▲0.75 | 42.51 ▼1.90 |
Dashboard /wp-admin | 4.04 ▲0.73 | 57.15 ▲5.35 |
Posts /wp-admin/edit.php | 4.09 ▲0.73 | 55.52 ▲2.18 |
Add New Post /wp-admin/post-new.php | 6.59 ▲0.70 | 91.06 ▼9.81 |
Media Library /wp-admin/upload.php | 3.90 ▲0.67 | 42.25 ▲4.27 |
Server storage [IO: ▲2.28MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 418 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Pagamento QR Code Ame Digital
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲214 | 14.84 ▲0.20 | 34.87 ▲33.08 | 38.04 ▼1.74 |
Dashboard /wp-admin | 2,213 ▲22 | 5.89 ▲0.99 | 96.19 ▼7.90 | 39.31 ▼6.01 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.04 ▲0.02 | 34.25 ▼5.60 | 35.37 ▼3.15 |
Add New Post /wp-admin/post-new.php | 1,522 ▲3 | 23.11 ▼0.01 | 614.72 ▼28.08 | 50.48 ▼6.70 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.20 ▲0.01 | 97.31 ▼4.13 | 42.77 ▼2.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following
- 192× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'League\\Container\\Argument\\ArgumentResolverInterface' not found in wp-content/plugins/wc-ame-digital/vendor/league/container/src/Inflector/Inflector.php:9
- > PHP Fatal error
Uncaught Error: Class 'WPSteak\\Providers\\AbstractHookProvider' not found in wp-content/plugins/wc-ame-digital/src/Providers/Orders/Pqad_QrCode.php:12
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wc-ame-digital/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php:5
- > PHP Fatal error
Uncaught Error: Interface 'WPSteak\\Entities\\CollectionInterface' not found in wp-content/plugins/wc-ame-digital/vendor/apiki/wpsteak/src/Entities/Collection.php:15
- > PHP Fatal error
Trait 'WPSteak\\Services\\Labels\\Common' not found in wp-content/plugins/wc-ame-digital/vendor/apiki/wpsteak/src/Services/Labels/PostType.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wc-ame-digital/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php:5
- > PHP Warning
include_once(wp-content/plugins/wc-ame-digital/vendor/dusank/knapsack/tests/performance/../../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wc-ame-digital/vendor/dusank/knapsack/tests/performance/reduce_vs_array_reduce.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wc-ame-digital/vendor/composer/installers/src/Composer/Installers/GravInstaller.php:5
- > PHP Fatal error
Uncaught Error: Interface 'League\\Container\\Argument\\ClassNameInterface' not found in wp-content/plugins/wc-ame-digital/vendor/league/container/src/Argument/ClassName.php:5
- > PHP Fatal error
Uncaught Error: Interface 'League\\Container\\ContainerAwareInterface' not found in wp-content/plugins/wc-ame-digital/vendor/league/container/src/ServiceProvider/ServiceProviderAggregateInterface.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #2 (Configuração de Pagamento) image missing
wc-ame-digital/wc-ame-digital.php Passed 13 tests
The main file in "Pagamento QR Code Ame Digital" v. 1.2.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
58 characters long description:
Gateway de pagamento QR Code Ame Digital para WooCommerce.
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
Everything looks great! No dangerous files found in this plugin19,299 lines of code in 375 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 241 | 2,220 | 4,647 | 9,148 |
Markdown | 32 | 1,081 | 0 | 3,704 |
Sass | 37 | 631 | 284 | 2,860 |
JavaScript | 30 | 395 | 353 | 1,040 |
JSON | 12 | 0 | 0 | 972 |
SVG | 1 | 0 | 0 | 685 |
CSS | 4 | 20 | 63 | 391 |
HTML | 6 | 27 | 23 | 162 |
YAML | 7 | 14 | 4 | 137 |
PO File | 1 | 36 | 64 | 108 |
XML | 4 | 4 | 0 | 92 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 1.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 38 | |
Interfaces | 26 | |
Traits | 12 | |
Classes | 185 | |
▷ Abstract classes | 14 | 7.57% |
▷ Concrete classes | 171 | 92.43% |
▷ Final classes | 0 | 0.00% |
Methods | 694 | |
▷ Static methods | 60 | 8.65% |
▷ Public methods | 622 | 89.63% |
▷ Protected methods | 63 | 9.08% |
▷ Private methods | 9 | 1.30% |
Functions | 260 | |
▷ Named functions | 100 | 38.46% |
▷ Anonymous functions | 160 | 61.54% |
Constants | 28 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 28 | 100.00% |
▷ Public constants | 28 | 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.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/images/ame-logo.png | 1.49KB | 1.36KB | ▼ 8.46% |
vendor/league/container/docs/assets/images/code.png | 31.43KB | 13.83KB | ▼ 56.00% |
resources/images/ame-pay.png | 9.41KB | 4.26KB | ▼ 54.70% |