Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.18ms] Passed 4 tests
An overview of server-side resources used by WooCommerce XRP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.77 ▼1.93 |
Dashboard /wp-admin | 3.33 ▲0.02 | 47.52 ▲1.91 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.95 ▼3.64 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 94.78 ▼10.50 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.70 ▼4.64 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce XRP
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.24 ▼1.18 | 4.37 ▲1.97 | 39.91 ▼4.86 |
Dashboard /wp-admin | 2,206 ▲18 | 5.89 ▲1.00 | 102.74 ▼9.45 | 38.75 ▲1.10 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.05 ▲0.04 | 39.20 ▼0.26 | 36.15 ▼3.69 |
Add New Post /wp-admin/post-new.php | 1,533 ▼1 | 23.52 ▲0.17 | 596.46 ▼67.48 | 39.78 ▼11.16 |
Media Library /wp-admin/upload.php | 1,385 ▲6 | 4.21 ▲0.01 | 99.43 ▼13.61 | 42.26 ▼6.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-xrp/views/thank_you.php:1
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woo-xrp/includes/class-wcxrp-gateway.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: cryptocurrency, gateway, woocommerce, woo, xrp
woo-xrp/woocommerce-xrp.php 77% from 13 tests
This is the main PHP file of "WooCommerce XRP" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-xrp.php" instead of "woocommerce-xrp.php")
- Requires at least: Required version does not match the one declared in readme.txt ("5.1" instead of "3.5.6")
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
Success! There were no dangerous files found in this plugin2,102 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 176 | 292 | 1,195 |
PO File | 6 | 269 | 296 | 821 |
JavaScript | 2 | 6 | 0 | 86 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 4.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 46 | |
▷ Static methods | 1 | 2.17% |
▷ Public methods | 26 | 56.52% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 43.48% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
No PNG files were detected