77% tamara-checkout

Code Review | Tamara Checkout

WordPress plugin Tamara Checkout scored77%from 54 tests.

About plugin

  • Plugin page: tamara-checkout
  • Plugin version: 1.9.6
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 6, 2020
  • Latest release: Nov 29, 2023
  • Number of updates: 144
  • Update frequency: every 8.4 days
  • Top authors: tamarasolution (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active /10,316 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.45 ▼4.62
Dashboard /wp-admin3.39 ▲0.0844.37 ▼6.76
Posts /wp-admin/edit.php3.50 ▲0.1448.27 ▼3.06
Add New Post /wp-admin/post-new.php5.97 ▲0.0891.32 ▼2.18
Media Library /wp-admin/upload.php3.31 ▲0.0832.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.67 ▲0.301.66 ▼0.0336.22 ▼9.03
Dashboard /wp-admin2,192 ▲155.61 ▼0.2091.69 ▼16.9541.62 ▼1.24
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0838.53 ▼3.3134.45 ▼4.29
Add New Post /wp-admin/post-new.php1,526 ▼023.06 ▼0.27667.78 ▲37.6149.59 ▲0.08
Media Library /wp-admin/upload.php1,400 ▲64.23 ▲0.0996.69 ▼1.4640.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

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
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP71810,79023,85268,254
JSON170013,692
CSS52,524165,548
Markdown211480642
JavaScript105177393
PO File11611335
Sass6540312
SVG1400200
XML15027

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 code0.43
Average class complexity9.91
▷ Minimum class complexity1.00
▷ Maximum class complexity236.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity179.00
Code structure
Namespaces132
Interfaces169
Traits15
Classes481
▷ Abstract classes163.33%
▷ Concrete classes46596.67%
▷ Final classes9921.29%
Methods3,908
▷ Static methods47612.18%
▷ Public methods3,35885.93%
▷ Protected methods2285.83%
▷ Private methods3228.24%
Functions285
▷ Named functions13647.72%
▷ Anonymous functions14952.28%
Constants504
▷ Global constants8516.87%
▷ Class constants41983.13%
▷ Public constants33379.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
FileSize - originalSize - compressedSavings
docs/images/fail.png45.40KB13.74KB▼ 69.74%
banner-1544x500.png1,213.01KB347.48KB▼ 71.35%
docs/images/settings.png191.87KB58.22KB▼ 69.66%
docs/images/thankyou-page.png154.68KB45.45KB▼ 70.61%
banner-772x250.png326.28KB96.36KB▼ 70.47%