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
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▲1.09ms] Passed 4 tests
This is a short check of server-side resources used by Electroneum Instant Payments for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 47.76 ▲5.50 |
Dashboard /wp-admin | 3.38 ▲0.08 | 55.29 ▲3.26 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 57.52 ▲7.24 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 92.13 ▼11.65 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 44.53 ▲10.73 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
payment_post_id |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Electroneum Instant Payments for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.35 ▲0.17 | 1.72 ▲0.01 | 46.30 ▲5.90 |
Dashboard /wp-admin | 2,194 ▲17 | 5.55 ▼0.10 | 89.86 ▼0.72 | 74.06 ▲31.75 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 1.99 ▲0.02 | 36.73 ▲0.65 | 32.15 ▼10.18 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 23.04 ▼0.58 | 660.71 ▲20.71 | 162.84 ▲114.54 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.12 ▼0.12 | 116.74 ▲20.48 | 81.48 ▲38.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- payment_post_id
- widget_theysaidso_widget
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/electroneum-instant-payments-for-woocommerce/include/electroneum_ips_library.php:5
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/electroneum-instant-payments-for-woocommerce/include/electroneum_ips_library.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
electroneum-instant-payments-for-woocommerce/electroneum_ips_gateway.php 85% from 13 tests
The main PHP script in "Electroneum Instant Payments for WooCommerce" version 1.1.6 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: It is recommended to name the main PHP file as the plugin slug ("electroneum-instant-payments-for-woocommerce.php" instead of "electroneum_ips_gateway.php")
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
Everything looks great! No dangerous files found in this plugin628 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 172 | 385 | 602 |
JavaScript | 2 | 5 | 11 | 26 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 23.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/checked.png | 1.52KB | 1.44KB | ▼ 5.01% |
assets/electroneum-24.png | 3.80KB | 1.75KB | ▼ 54.00% |
assets/electroneum.png | 0.68KB | 0.69KB | 0.00% |