WordPress plugin CashTippr scored78%from 54 tests.

About plugin

  • Plugin page: cashtippr-bitcoin...
  • Plugin version: 1.1.20
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.6
  • WordPress version: 6.3.1
  • First release: Sep 19, 2018
  • Latest release: Dec 10, 2020
  • Number of updates: 128
  • Update frequency: every 6.4 days
  • Top authors: ekliptor (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /6,524 total downloads

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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.67MB] [CPU: ▲2.73ms] Passed 4 tests

Analyzing server-side resources used by CashTippr
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.07 ▲0.6145.62 ▲4.66
Dashboard /wp-admin3.99 ▲0.6854.37 ▲5.53
Posts /wp-admin/edit.php4.10 ▲0.7447.38 ▼0.63
Add New Post /wp-admin/post-new.php6.59 ▲0.7093.16 ▲1.34
Media Library /wp-admin/upload.php3.91 ▲0.6843.59 ▲7.95

Server storage [IO: ▲5.32MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 218 new files
Database: 2 new tables, 11 new options
New tables
wp_ct_transactions
wp_ct_sessions
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
cashtippr_settings
can_compress_scripts
cashtippr_is_installed
db_upgraded
cashtippr_tables
cashtippr_version
widget_recent-posts
...

Browser metrics Passed 4 tests

Checking browser requirements for CashTippr
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲12613.28 ▼1.485.12 ▲3.3946.73 ▲0.31
Dashboard /wp-admin2,227 ▲394.93 ▲0.05100.20 ▼4.5861.36 ▲17.65
Posts /wp-admin/edit.php2,119 ▲302.03 ▲0.0339.11 ▼2.1334.97 ▼0.21
Add New Post /wp-admin/post-new.php1,540 ▲723.21 ▼0.04692.13 ▲23.6957.25 ▼4.01
Media Library /wp-admin/upload.php1,413 ▲284.11 ▼0.08101.08 ▼2.0671.10 ▲25.63

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_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% 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 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 items
  • 27× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/cashtippr-bitcoin-cash-moneybutton-payments/classes/src/phpqrcode/public/includes/benchmarkTable.inc.php
    • > /wp-content/plugins/cashtippr-bitcoin-cash-moneybutton-payments/tpl/faucet.php
    • > /wp-content/plugins/cashtippr-bitcoin-cash-moneybutton-payments/cashtippr.php
    • > /wp-content/plugins/cashtippr-bitcoin-cash-moneybutton-payments/classes/src/phpqrcode/public/includes/sectionForm.inc.php
    • > /wp-content/plugins/cashtippr-bitcoin-cash-moneybutton-payments/tpl/client/qrcode.php
    • > /wp-content/plugins/cashtippr-bitcoin-cash-moneybutton-payments/tpl/adminNotice.php
    • > /wp-content/plugins/cashtippr-bitcoin-cash-moneybutton-payments/tpl/moneybuttonCode.php
    • > /wp-content/plugins/cashtippr-bitcoin-cash-moneybutton-payments/tpl/accessPass.php
    • > /wp-content/plugins/cashtippr-bitcoin-cash-moneybutton-payments/tpl/message.php
    • > /wp-content/plugins/cashtippr-bitcoin-cash-moneybutton-payments/classes/src/phpqrcode/public/includes/sectionResults.inc.php
  • 145× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: filename in wp-content/plugins/cashtippr-bitcoin-cash-moneybutton-payments/classes/src/Ekliptor/cashp/src/phpqrcode/public/includes/sectionResults.inc.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'QR_Code\\Util\\AbstractGenerator' not found in wp-content/plugins/cashtippr-bitcoin-cash-moneybutton-payments/classes/src/Ekliptor/cashp/src/phpqrcode/src/QR_Code/Types/QR_Text.php:16
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/cashtippr-bitcoin-cash-moneybutton-payments/classes/src/phpqrcode/public/includes/benchmarkTable.inc.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'QR_Code\\Util\\AbstractGenerator' not found in wp-content/plugins/cashtippr-bitcoin-cash-moneybutton-payments/classes/src/phpqrcode/src/QR_Code/Types/QR_EmailMessage.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'QR_Code\\Contracts\\VCardItem' not found in wp-content/plugins/cashtippr-bitcoin-cash-moneybutton-payments/classes/src/Ekliptor/cashp/src/phpqrcode/src/QR_Code/Types/vCard/Address.php:15
    • > PHP Warning
      require_once(wp-content/plugins/cashtippr-bitcoin-cash-moneybutton-payments/classes/src/Ekliptor/cashp/src/phpqrcode/public/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/cashtippr-bitcoin-cash-moneybutton-payments/classes/src/Ekliptor/cashp/src/phpqrcode/public/clearTemp.php on line 3
    • > PHP Notice
      Undefined variable: btnConf in wp-content/plugins/cashtippr-bitcoin-cash-moneybutton-payments/classes/src/Ekliptor/cashp/tpl/badgerButton.php on line 10
    • > PHP Notice
      Undefined variable: matrixPointSize in wp-content/plugins/cashtippr-bitcoin-cash-moneybutton-payments/classes/src/phpqrcode/public/includes/sectionForm.inc.php on line 22
    • > PHP Notice
      Undefined variable: PNG_WEB_DIR in wp-content/plugins/cashtippr-bitcoin-cash-moneybutton-payments/classes/src/phpqrcode/public/includes/sectionResults.inc.php on line 10
    • > PHP Fatal error
      Uncaught Error: Class 'QR_Code\\Util\\AbstractGenerator' not found in wp-content/plugins/cashtippr-bitcoin-cash-moneybutton-payments/classes/src/Ekliptor/cashp/src/phpqrcode/src/QR_Code/Types/QR_EmailMessage.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

cashtippr-bitcoin-cash-moneybutton-payments/cashtippr.php 85% from 13 tests

The primary PHP file in "CashTippr" version 1.1.20 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cashtippr-bitcoin-cash-moneybutton-payments.php" instead of "cashtippr.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected89,805 lines of code in 180 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript614,83834,46471,841
PHP1181,5172,7658,244
SVG3004,498
XML2122,055
TypeScript222962971,904
CSS39529643
Markdown172310420
JSON500131
HTML15045
YAML20021
Sass1103

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity13.46
▷ Minimum class complexity1.00
▷ Maximum class complexity182.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces17
Interfaces4
Traits0
Classes110
▷ Abstract classes54.55%
▷ Concrete classes10595.45%
▷ Final classes32.86%
Methods732
▷ Static methods18024.59%
▷ Public methods66090.16%
▷ Protected methods577.79%
▷ Private methods152.05%
Functions43
▷ Named functions1841.86%
▷ Anonymous functions2558.14%
Constants105
▷ Global constants8379.05%
▷ Class constants2220.95%
▷ Public constants22100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
34 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
classes/src/phpqrcode/docs/assets/images/me-card.png0.51KB0.49KB▼ 4.02%
classes/src/Ekliptor/cashp/src/phpqrcode/docs/assets/images/phone-ecc-m.png0.30KB0.28KB▼ 6.58%
classes/src/Ekliptor/cashp/src/phpqrcode/docs/assets/images/wi-fi.png0.38KB0.35KB▼ 5.97%
classes/src/phpqrcode/docs/assets/images/random1.png0.23KB0.21KB▼ 8.90%
classes/src/Ekliptor/cashp/src/phpqrcode/docs/assets/images/generic-use.png0.24KB0.22KB▼ 8.23%