Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼264.00ms] Passed 4 tests
Server-side resources used by Easy Coil
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 32.81 ▲13.50 |
Dashboard /wp-admin | 3.12 ▲0.06 | 40.42 ▼1.54 |
Posts /wp-admin/edit.php | 3.23 ▲0.12 | 42.68 ▲1.78 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 91.73 ▼1,050.47 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 36.32 ▼5.75 |
Easy Coil /wp-admin/options-general.php?page=easy-coil | 3.00 | 25.14 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Coil
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲97 | 15.82 ▲0.35 | 8.28 ▲1.82 | 47.25 ▼4.57 |
Dashboard /wp-admin | 2,938 ▲85 | 5.94 ▲0.13 | 133.54 ▲0.76 | 104.91 ▲13.63 |
Posts /wp-admin/edit.php | 2,711 ▲5 | 2.68 ▼0.02 | 66.64 ▼0.35 | 91.12 ▼5.23 |
Add New Post /wp-admin/post-new.php | 1,656 ▼197 | 18.79 ▼0.28 | 368.87 ▼2.68 | 104.72 ▼0.02 |
Media Library /wp-admin/upload.php | 1,780 ▲8 | 5.03 ▲0.02 | 134.18 ▼16.56 | 111.11 ▼4.70 |
Easy Coil /wp-admin/options-general.php?page=easy-coil | 1,038 | 2.09 | 56.06 | 78.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=easy-coil
- > Notice in wp-content/plugins/easy-coil/admin/class-easy-coil-admin-settings.php+60
Undefined index: placeholder
- > GET request to /wp-admin/options-general.php?page=easy-coil
- > Notice in wp-content/plugins/easy-coil/admin/class-easy-coil-admin-settings.php+72
Undefined index: desc
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 fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/easy-coil/admin/partials/easy-coil-admin-display.php
- > /wp-content/plugins/easy-coil/public/partials/easy-coil-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: coil, xrp, web, crypto, monetization...
easy-coil/easy-coil.php Passed 13 tests
The primary PHP file in "Easy Coil" version 1.5.0 is used by WordPress to initiate all plugin functionality
59 characters long description:
Easily enable Coil web monetization on your WordPress Site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected243 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 117 | 522 | 243 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 1.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/xrp-logo.png | 7.85KB | 3.88KB | ▼ 50.55% |
admin/img/xrp-tip-bot-button.png | 22.53KB | 6.94KB | ▼ 69.20% |