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.13MB] [CPU: ▼5.38ms] Passed 4 tests
Server-side resources used by TendoPay
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 35.59 ▼3.71 |
Dashboard /wp-admin | 3.45 ▲0.15 | 54.17 ▲6.01 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 54.52 ▲0.61 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 89.31 ▼19.49 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 38.18 ▲1.09 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 113 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for TendoPay
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,465 ▼296 | 14.28 ▼0.27 | 0.54 ▼1.08 | 19.72 ▼25.36 |
Dashboard /wp-admin | 2,206 ▲29 | 5.61 ▼0.04 | 90.95 ▼11.75 | 41.67 ▲1.04 |
Posts /wp-admin/edit.php | 2,115 ▲12 | 2.02 ▲0.07 | 39.45 ▼2.42 | 36.67 ▲1.23 |
Add New Post /wp-admin/post-new.php | 1,537 ▲2 | 23.23 ▲4.93 | 659.67 ▲16.14 | 66.79 ▼1.91 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.21 ▲0.01 | 94.92 ▼15.67 | 45.81 ▲0.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 items
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/tendopay/vendor/tendopay/tendopay-sdk-php/samples/index.php
- > /wp-content/plugins/tendopay/tendopay.php
- > /wp-content/plugins/tendopay/vendor/tendopay/tendopay-sdk-php/samples/index.html.php
- > /wp-content/plugins/tendopay/partials/pdp-calc-init.php
- 28× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Trait 'TendoPay\\SDK\\Traits\\TpConfigTrait' not found in wp-content/plugins/tendopay/vendor/tendopay/tendopay-sdk-php/src/V2/ConstantsV2.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tendopay/src/TendoPay/Marketing/functions.php:6
- > PHP Warning
Use of undefined constant TENDOPAY_BASEURL - assumed 'TENDOPAY_BASEURL' (this will throw an Error in a future version of PHP) in wp-content/plugins/tendopay/partials/pdp-calc-popup.php on line 11
- > PHP Fatal error
Uncaught TypeError: Argument 1 passed to TendoPay\\SDK\\Models\\Payment::setMerchantOrderId() must be of the type string, null given, called in wp-content/plugins/tendopay/vendor/tendopay/tendopay-sdk-php/samples/payment.php on line 26 and defined in wp-content/plugins/tendopay/vendor/tendopay/tendopay-sdk-php/src/Models/Payment.php:82
- > PHP Fatal error
Trait 'TendoPay\\SDK\\Traits\\V2\\TendoPayHelper' not found in wp-content/plugins/tendopay/vendor/tendopay/tendopay-sdk-php/src/V2/TendoPayClient.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tendopay/src/TendoPay/Marketing/functions.php:6
- > PHP Notice
Undefined index: tp_description in wp-content/plugins/tendopay/vendor/tendopay/tendopay-sdk-php/samples/payment.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/tendopay/partials/pdp-calc-popup.php:14
- > PHP Fatal error
Trait 'TendoPay\\SDK\\Traits\\TendoPayHelper' not found in wp-content/plugins/tendopay/vendor/tendopay/tendopay-sdk-php/src/TendoPayClient.php on line 24
- > PHP Warning
Use of undefined constant TENDOPAY_BASEURL - assumed 'TENDOPAY_BASEURL' (this will throw an Error in a future version of PHP) in wp-content/plugins/tendopay/partials/pdp-calc-popup.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #1, #2 in tendopay/assets to your readme.txt
tendopay/tendopay.php 92% from 13 tests
The principal PHP file in "TendoPay" v. 3.2.0 is loaded by WordPress automatically on each request
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin4,931 lines of code in 91 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 67 | 832 | 1,547 | 3,630 |
CSS | 3 | 98 | 3 | 461 |
Vuejs Component | 4 | 27 | 7 | 333 |
Markdown | 3 | 108 | 0 | 298 |
JSON | 3 | 0 | 0 | 129 |
JavaScript | 3 | 4 | 0 | 38 |
SVG | 5 | 0 | 0 | 23 |
XML | 2 | 3 | 1 | 16 |
Bourne Shell | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 6.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 1.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 1 | |
Traits | 4 | |
Classes | 36 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 36 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 244 | |
▷ Static methods | 76 | 31.15% |
▷ Public methods | 202 | 82.79% |
▷ Protected methods | 24 | 9.84% |
▷ Private methods | 18 | 7.38% |
Functions | 16 | |
▷ Named functions | 8 | 50.00% |
▷ Anonymous functions | 8 | 50.00% |
Constants | 124 | |
▷ Global constants | 4 | 3.23% |
▷ Class constants | 120 | 96.77% |
▷ Public constants | 119 | 99.17% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
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/img/tp-logo-example-payments.png | 10.20KB | 5.73KB | ▼ 43.81% |
assets/img/tp-logo-blue_66x12.png | 1.44KB | 1.48KB | 0.00% |
assets/img/tp-logo-blue_180x33.png | 4.73KB | 2.65KB | ▼ 43.89% |