Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.55ms] Passed 4 tests
An overview of server-side resources used by Terminal for Stripe and WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 31.88 ▼5.01 |
Dashboard /wp-admin | 3.31 ▲0.00 | 39.42 ▼10.40 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.52 ▼2.00 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 73.43 ▼16.61 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.14 ▼2.18 |
Server storage [IO: ▲0.19MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Terminal for Stripe and WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.22 ▼0.13 | 1.58 ▼0.14 | 35.30 ▼3.74 |
Dashboard /wp-admin | 2,192 ▲18 | 5.65 ▲0.03 | 106.54 ▲13.97 | 41.45 ▼9.25 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▼0.03 | 38.41 ▲3.93 | 37.56 ▲1.04 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 18.09 ▼5.52 | 608.29 ▼6.01 | 70.97 ▲12.73 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.18 ▼0.11 | 95.77 ▲1.30 | 42.68 ▲2.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% 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 your attention:
- Tags: There are too many tags (24 tag instead of maximum 10)
terminal-for-stripe-and-woocommerce/terminal-for-stripe-and-woocommerce.php Passed 13 tests
"Terminal for Stripe and WooCommerce" version 2.2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
70 characters long description:
Take credit card payments locally on your store using Stripe Terminal.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,501 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 401 | 517 | 2,501 |
CSS | 1 | 0 | 13 | 0 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 103.17 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 255.00 |
Average method complexity | 8.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 90.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 83 | |
▷ Static methods | 5 | 6.02% |
▷ Public methods | 68 | 81.93% |
▷ Protected methods | 2 | 2.41% |
▷ Private methods | 13 | 15.66% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/tfsw-terminal.png | 20.47KB | 8.24KB | ▼ 59.74% |