Benchmarks
Plugin footprint 65% 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.03MB] [CPU: ▼4.69ms] Passed 4 tests
A check of server-side resources used by UnDosTres Payment Gateway
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 33.90 ▼4.12 |
Dashboard /wp-admin | 3.34 ▲0.03 | 43.41 ▼5.01 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 46.30 ▼5.25 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.39 ▼4.39 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.83 ▲3.30 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 263 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
UnDosTres Payment Gateway: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 13.58 ▼0.71 | 1.56 ▼0.12 | 39.04 ▼1.06 |
Dashboard /wp-admin | 2,208 ▲20 | 6.02 ▲1.15 | 99.57 ▼16.04 | 39.84 ▼1.70 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▲0.02 | 40.66 ▼4.28 | 36.66 ▲2.12 |
Add New Post /wp-admin/post-new.php | 1,519 ▲5 | 17.60 ▲0.14 | 652.61 ▲18.83 | 51.11 ▼6.07 |
Media Library /wp-admin/upload.php | 1,393 ▲2 | 4.23 ▲0.06 | 94.74 ▼3.35 | 43.74 ▼2.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/gateway-undostres/includes/utility/class-wc-undostres-cookie.php+23
Undefined index: UDT
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
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 everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 160× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Opis\\JsonSchema\\Parsers\\PragmaParser' not found in wp-content/plugins/gateway-undostres/vendor/opis/json-schema/src/Parsers/Pragmas/SlotsPragmaParser.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Opis\\JsonSchema\\Variables' not found in wp-content/plugins/gateway-undostres/vendor/opis/json-schema/src/Variables/RefVariablesContainer.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Opis\\JsonSchema\\Keyword' not found in wp-content/plugins/gateway-undostres/vendor/opis/json-schema/src/Keywords/NotKeyword.php:27
- > PHP Fatal error
Uncaught Error: Interface 'Opis\\JsonSchema\\Keyword' not found in wp-content/plugins/gateway-undostres/vendor/opis/json-schema/src/Keywords/ItemsKeyword.php:27
- > PHP Fatal error
Uncaught Error: Class 'Opis\\JsonSchema\\Keywords\\EnumKeyword' not found in wp-content/plugins/gateway-undostres/vendor/opis/json-schema/src/Keywords/EnumDataKeyword.php:23
- > PHP Fatal error
Uncaught Error: Class 'Opis\\JsonSchema\\Parsers\\KeywordParser' not found in wp-content/plugins/gateway-undostres/vendor/opis/json-schema/src/Parsers/Keywords/ExclusiveMaximumKeywordParser.php:29
- > PHP Fatal error
Uncaught Error: Class 'Opis\\JsonSchema\\Exceptions\\ParseException' not found in wp-content/plugins/gateway-undostres/vendor/opis/json-schema/src/Exceptions/InvalidKeywordException.php:22
- > PHP Fatal error
Uncaught Error: Class 'Opis\\JsonSchema\\Keywords\\AbstractRefKeyword' not found in wp-content/plugins/gateway-undostres/vendor/opis/json-schema/src/Keywords/RecursiveRefKeyword.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Opis\\JsonSchema\\Keyword' not found in wp-content/plugins/gateway-undostres/vendor/opis/json-schema/src/Keywords/AllOfKeyword.php:27
- > PHP Fatal error
Uncaught Error: Class 'Opis\\JsonSchema\\Parsers\\Drafts\\Draft06' not found in wp-content/plugins/gateway-undostres/vendor/opis/json-schema/src/Parsers/Drafts/Draft07.php:22
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in gateway-undostres/assets to your readme.txt
gateway-undostres/woocommerce-gateway-undostres.php 92% from 13 tests
The entry point to "UnDosTres Payment Gateway" version 1.0.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gateway-undostres.php" instead of "woocommerce-gateway-undostres.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin19,079 lines of code in 252 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 234 | 3,426 | 6,620 | 18,150 |
JSON | 10 | 0 | 0 | 667 |
Markdown | 7 | 119 | 0 | 244 |
CSS | 1 | 3 | 3 | 18 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 12.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 252.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 27 | |
Interfaces | 11 | |
Traits | 8 | |
Classes | 201 | |
▷ Abstract classes | 9 | 4.48% |
▷ Concrete classes | 192 | 95.52% |
▷ Final classes | 13 | 6.77% |
Methods | 914 | |
▷ Static methods | 142 | 15.54% |
▷ Public methods | 799 | 87.42% |
▷ Protected methods | 95 | 10.39% |
▷ Private methods | 20 | 2.19% |
Functions | 27 | |
▷ Named functions | 11 | 40.74% |
▷ Anonymous functions | 16 | 59.26% |
Constants | 66 | |
▷ Global constants | 3 | 4.55% |
▷ Class constants | 63 | 95.45% |
▷ Public constants | 31 | 49.21% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 3.48KB | 2.00KB | ▼ 42.52% |