Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.16ms] Passed 4 tests
An overview of server-side resources used by Tamara Checkout
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.45 ▼4.62 |
Dashboard /wp-admin | 3.39 ▲0.08 | 44.37 ▼6.76 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.27 ▼3.06 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 91.32 ▼2.18 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 32.83 ▲1.20 |
Server storage [IO: ▲9.24MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 858 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Tamara Checkout
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.67 ▲0.30 | 1.66 ▼0.03 | 36.22 ▼9.03 |
Dashboard /wp-admin | 2,192 ▲15 | 5.61 ▼0.20 | 91.69 ▼16.95 | 41.62 ▼1.24 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.08 | 38.53 ▼3.31 | 34.45 ▼4.29 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.06 ▼0.27 | 667.78 ▲37.61 | 49.59 ▲0.08 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.23 ▲0.09 | 96.69 ▼1.46 | 40.35 ▼3.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/tamara-checkout/views/woocommerce/checkout/tamara-gateway-description.php
- > /wp-content/plugins/tamara-checkout/views/woocommerce/checkout/tamara-gateway-pay-next-month-description.php
- 332× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Tamara\\Wp\\Plugin\\Dependencies\\Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface' not found in wp-content/plugins/tamara-checkout/src/Dependencies/Symfony/Component/HttpFoundation/Session/Storage/MetadataBag.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Tamara\\Wp\\Plugin\\Dependencies\\Symfony\\Component\\Mime\\Encoder\\EncoderInterface' not found in wp-content/plugins/tamara-checkout/src/Dependencies/Symfony/Component/Mime/Encoder/ContentEncoderInterface.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Tamara\\Wp\\Plugin\\Dependencies\\GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/tamara-checkout/src/Dependencies/GuzzleHttp/Promise/Promise.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Tamara\\Wp\\Plugin\\Dependencies\\Buzz\\Middleware\\MiddlewareInterface' not found in wp-content/plugins/tamara-checkout/src/Dependencies/Buzz/Middleware/WsseAuthMiddleware.php:10
- > PHP Fatal error
Uncaught Error: Class 'Tamara\\Wp\\Plugin\\Dependencies\\Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\AbstractSessionHandler' not found in wp-content/plugins/tamara-checkout/src/Dependencies/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcachedSessionHandler.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Tamara\\Wp\\Plugin\\Dependencies\\Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface' not found in wp-content/plugins/tamara-checkout/src/Dependencies/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBagInterface.php:21
- > PHP Fatal error
Uncaught Error: Class 'Tamara\\Wp\\Plugin\\Dependencies\\GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/tamara-checkout/src/Dependencies/GuzzleHttp/Exception/ClientException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Tamara\\Wp\\Plugin\\Dependencies\\Psr\\Container\otFoundExceptionInterface' not found in wp-content/plugins/tamara-checkout/src/Dependencies/Illuminate/Container/EntryNotFoundException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Tamara\\Wp\\Plugin\\Dependencies\\Buzz\\Exception\\ExceptionInterface' not found in wp-content/plugins/tamara-checkout/src/Dependencies/Buzz/Exception/ClientException.php:12
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Caster\\EnumStub' not found in wp-content/plugins/tamara-checkout/vendor/symfony/var-dumper/Caster/FrameStub.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
- Requires php: Version format is invalid
tamara-checkout/tamara-checkout.php 85% from 13 tests
The entry point to "Tamara Checkout" version 1.9.6 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: Please keep the plugin description shorter than 140 characters (currently 195 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin89,403 lines of code in 793 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 718 | 10,790 | 23,852 | 68,254 |
JSON | 17 | 0 | 0 | 13,692 |
CSS | 5 | 2,524 | 16 | 5,548 |
Markdown | 21 | 148 | 0 | 642 |
JavaScript | 10 | 51 | 77 | 393 |
PO File | 1 | 161 | 1 | 335 |
Sass | 6 | 54 | 0 | 312 |
SVG | 14 | 0 | 0 | 200 |
XML | 1 | 5 | 0 | 27 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 9.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 236.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 132 | |
Interfaces | 169 | |
Traits | 15 | |
Classes | 481 | |
▷ Abstract classes | 16 | 3.33% |
▷ Concrete classes | 465 | 96.67% |
▷ Final classes | 99 | 21.29% |
Methods | 3,908 | |
▷ Static methods | 476 | 12.18% |
▷ Public methods | 3,358 | 85.93% |
▷ Protected methods | 228 | 5.83% |
▷ Private methods | 322 | 8.24% |
Functions | 285 | |
▷ Named functions | 136 | 47.72% |
▷ Anonymous functions | 149 | 52.28% |
Constants | 504 | |
▷ Global constants | 85 | 16.87% |
▷ Class constants | 419 | 83.13% |
▷ Public constants | 333 | 79.47% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
15 PNG files occupy 2.84MB with 2.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
docs/images/fail.png | 45.40KB | 13.74KB | ▼ 69.74% |
banner-1544x500.png | 1,213.01KB | 347.48KB | ▼ 71.35% |
docs/images/settings.png | 191.87KB | 58.22KB | ▼ 69.66% |
docs/images/thankyou-page.png | 154.68KB | 45.45KB | ▼ 70.61% |
banner-772x250.png | 326.28KB | 96.36KB | ▼ 70.47% |