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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.53ms] Passed 4 tests
This is a short check of server-side resources used by Trustap Payment Gateway
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.22 ▼5.47 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.06 ▼3.74 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.10 ▲2.97 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.44 ▼11.42 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.60 ▲2.51 |
Server storage [IO: ▲2.29MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 426 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Trustap Payment Gateway: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.64 ▼0.76 | 1.62 ▼0.61 | 42.23 ▼3.50 |
Dashboard /wp-admin | 2,206 ▲18 | 5.80 ▼0.09 | 97.39 ▼9.44 | 39.70 ▼6.68 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.00 | 36.96 ▼0.82 | 30.48 ▼3.41 |
Add New Post /wp-admin/post-new.php | 1,528 ▼8 | 23.48 ▲0.58 | 646.77 ▼22.20 | 53.63 ▼7.10 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▼0.03 | 100.57 ▼5.19 | 43.25 ▼3.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
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 | 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
- 171× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Math\\BigInteger\\Engines\\PHP\\Reductions\\Montgomery' not found in wp-content/plugins/trustap-payment-gateway/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/PHP/Reductions/MontgomeryMult.php:27
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\Curves\\secp224r1' not found in wp-content/plugins/trustap-payment-gateway/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/nistp224.php:18
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Prime' not found in wp-content/plugins/trustap-payment-gateway/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/brainpoolP384r1.php:21
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Prime' not found in wp-content/plugins/trustap-payment-gateway/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/brainpoolP320t1.php:21
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\DSA' not found in wp-content/plugins/trustap-payment-gateway/vendor/phpseclib/phpseclib/phpseclib/Crypt/DSA/PublicKey.php:27
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Math\\BigInteger\\Engines\\PHP\\Base' not found in wp-content/plugins/trustap-payment-gateway/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/PHP/Reductions/Classic.php:27
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\Rijndael' not found in wp-content/plugins/trustap-payment-gateway/vendor/phpseclib/phpseclib/phpseclib/Crypt/AES.php:59
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\Curves\\sect409k1' not found in wp-content/plugins/trustap-payment-gateway/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/nistk409.php:18
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Math\\Common\\FiniteField' not found in wp-content/plugins/trustap-payment-gateway/vendor/phpseclib/phpseclib/phpseclib/Math/BinaryField.php:30
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\Curves\\secp384r1' not found in wp-content/plugins/trustap-payment-gateway/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/nistp384.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please describe screenshot #2 in trustap-payment-gateway/assets to your readme.txt
trustap-payment-gateway/trustap-gateway.php 92% from 13 tests
The principal PHP file in "Trustap Payment Gateway" v. 1.2.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("trustap-payment-gateway.php" instead of "trustap-gateway.php")
Code Analysis 97% from 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 plugin37,925 lines of code in 411 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 381 | 7,101 | 25,112 | 36,477 |
JSON | 7 | 0 | 0 | 488 |
Markdown | 6 | 145 | 0 | 367 |
CSS | 2 | 9 | 4 | 234 |
JavaScript | 2 | 16 | 6 | 141 |
YAML | 3 | 7 | 2 | 129 |
XML | 2 | 0 | 0 | 47 |
SVG | 7 | 0 | 1 | 39 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 105)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 662.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 105.00 |
Code structure | ||
---|---|---|
Namespaces | 47 | |
Interfaces | 3 | |
Traits | 4 | |
Classes | 356 | |
▷ Abstract classes | 205 | 57.58% |
▷ Concrete classes | 151 | 42.42% |
▷ Final classes | 14 | 9.27% |
Methods | 1,595 | |
▷ Static methods | 471 | 29.53% |
▷ Public methods | 1,124 | 70.47% |
▷ Protected methods | 233 | 14.61% |
▷ Private methods | 238 | 14.92% |
Functions | 30 | |
▷ Named functions | 2 | 6.67% |
▷ Anonymous functions | 28 | 93.33% |
Constants | 317 | |
▷ Global constants | 8 | 2.52% |
▷ Class constants | 309 | 97.48% |
▷ Public constants | 309 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/supported_cards.png | 32.02KB | 10.18KB | ▼ 68.21% |