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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.61 | 45.62 ▲4.66 |
Dashboard /wp-admin | 3.99 ▲0.68 | 54.37 ▲5.53 |
Posts /wp-admin/edit.php | 4.10 ▲0.74 | 47.38 ▼0.63 |
Add New Post /wp-admin/post-new.php | 6.59 ▲0.70 | 93.16 ▲1.34 |
Media Library /wp-admin/upload.php | 3.91 ▲0.68 | 43.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲126 | 13.28 ▼1.48 | 5.12 ▲3.39 | 46.73 ▲0.31 |
Dashboard /wp-admin | 2,227 ▲39 | 4.93 ▲0.05 | 100.20 ▼4.58 | 61.36 ▲17.65 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.03 ▲0.03 | 39.11 ▼2.13 | 34.97 ▼0.21 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 23.21 ▼0.04 | 692.13 ▲23.69 | 57.25 ▼4.01 |
Media Library /wp-admin/upload.php | 1,413 ▲28 | 4.11 ▼0.08 | 101.08 ▼2.06 | 71.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
- > PHP Notice
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 14,838 | 34,464 | 71,841 |
PHP | 118 | 1,517 | 2,765 | 8,244 |
SVG | 3 | 0 | 0 | 4,498 |
XML | 2 | 1 | 2 | 2,055 |
TypeScript | 22 | 296 | 297 | 1,904 |
CSS | 3 | 95 | 29 | 643 |
Markdown | 17 | 231 | 0 | 420 |
JSON | 5 | 0 | 0 | 131 |
HTML | 1 | 5 | 0 | 45 |
YAML | 2 | 0 | 0 | 21 |
Sass | 1 | 1 | 0 | 3 |
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 code | 0.31 |
Average class complexity | 13.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 182.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 110 | |
▷ Abstract classes | 5 | 4.55% |
▷ Concrete classes | 105 | 95.45% |
▷ Final classes | 3 | 2.86% |
Methods | 732 | |
▷ Static methods | 180 | 24.59% |
▷ Public methods | 660 | 90.16% |
▷ Protected methods | 57 | 7.79% |
▷ Private methods | 15 | 2.05% |
Functions | 43 | |
▷ Named functions | 18 | 41.86% |
▷ Anonymous functions | 25 | 58.14% |
Constants | 105 | |
▷ Global constants | 83 | 79.05% |
▷ Class constants | 22 | 20.95% |
▷ Public constants | 22 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
classes/src/phpqrcode/docs/assets/images/me-card.png | 0.51KB | 0.49KB | ▼ 4.02% |
classes/src/Ekliptor/cashp/src/phpqrcode/docs/assets/images/phone-ecc-m.png | 0.30KB | 0.28KB | ▼ 6.58% |
classes/src/Ekliptor/cashp/src/phpqrcode/docs/assets/images/wi-fi.png | 0.38KB | 0.35KB | ▼ 5.97% |
classes/src/phpqrcode/docs/assets/images/random1.png | 0.23KB | 0.21KB | ▼ 8.90% |
classes/src/Ekliptor/cashp/src/phpqrcode/docs/assets/images/generic-use.png | 0.24KB | 0.22KB | ▼ 8.23% |