Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.50ms] Passed 4 tests
Analyzing server-side resources used by TurtleNetwork Gateway for Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.50 ▼1.94 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.80 ▼3.08 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 51.26 ▼4.90 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 90.31 ▼12.08 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.39 ▼0.49 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TurtleNetwork Gateway for Woocommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▼0.08 | 1.75 ▼0.31 | 44.22 ▼1.06 |
Dashboard /wp-admin | 2,192 ▲12 | 5.63 ▲0.10 | 88.55 ▼10.65 | 41.62 ▲1.82 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.99 ▲0.04 | 40.05 ▼3.88 | 38.33 ▼1.71 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.16 ▲0.22 | 679.25 ▼55.09 | 58.88 ▼3.08 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.20 ▼0.04 | 103.39 ▼8.32 | 45.71 ▼5.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'StephenHill\\ServiceInterface' not found in wp-content/plugins/tn-gateway-for-woocommerce/includes/base58/src/BCMathService.php:7
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/tn-gateway-for-woocommerce/includes/class-tn-gateway.php on line 237
- > PHP Fatal error
Uncaught Error: Interface 'StephenHill\\ServiceInterface' not found in wp-content/plugins/tn-gateway-for-woocommerce/includes/base58/src/GMPService.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Donate link: Please fix this invalid url: "TN - 3Jd9EQX1yqtYhACBydpjNd43pNnFJFX8z3o, WAVES - 3PA8GR3PLpGmwYhSdQjTSK7sGnjeC2XQQS2"
tn-gateway-for-woocommerce/tn-gateway-for-woocommerce.php 92% from 13 tests
The entry point to "TurtleNetwork Gateway for Woocommerce" version 0.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Plugin Name: Please don't use more than 70 characters for the plugin name (currently 75 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,596 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 161 | 201 | 745 |
JavaScript | 4 | 147 | 144 | 665 |
PO File | 2 | 42 | 44 | 145 |
CSS | 1 | 1 | 0 | 41 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 8 | 19.05% |
▷ Public methods | 36 | 85.71% |
▷ Protected methods | 1 | 2.38% |
▷ Private methods | 5 | 11.90% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin