Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼320.58ms] Passed 4 tests
This is a short check of server-side resources used by FairCoinWidget Shortcode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.02 | 59.91 ▲2.24 |
Dashboard /wp-admin | 3.43 ▲0.02 | 36.67 ▼1.32 |
Posts /wp-admin/edit.php | 3.66 ▲0.01 | 45.37 ▲3.36 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.08 | 96.21 ▼1,285.31 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 27.87 ▲2.07 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for FairCoinWidget Shortcode
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,874 ▲120 | 16.30 ▲0.61 | 8.57 ▲1.91 | 2.20 ▼0.33 |
Dashboard /wp-admin | 2,894 ▲33 | 6.04 ▼0.26 | 118.31 ▼16.91 | 156.85 ▼1.95 |
Posts /wp-admin/edit.php | 2,690 ▲2 | 3.24 ▲0.01 | 63.64 ▲3.22 | 141.79 ▲4.92 |
Add New Post /wp-admin/post-new.php | 1,620 ▼41 | 19.26 ▲2.86 | 393.88 ▼44.95 | 157.75 ▲3.29 |
Media Library /wp-admin/upload.php | 1,701 ▼2 | 5.53 ▼0.01 | 140.14 ▼5.68 | 188.59 ▲5.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/faircoin-donation-dutton/coin_js_wrapper.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/faircoin-donation-dutton/coinwidget-shortcode.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (The coinwidget button that how it will appear on the page), #2 (The expanded popup when the user clicks on the button.)
- Contributors: The plugin contributors field is missing
faircoin-donation-dutton/coinwidget-shortcode.php 92% from 13 tests
This is the main PHP file of "FairCoinWidget Shortcode" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("faircoin-donation-dutton.php" instead of "coinwidget-shortcode.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin2,745 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 606 | 518 | 2,314 |
JavaScript | 1 | 13 | 27 | 318 |
CSS | 1 | 14 | 29 | 53 |
HTML | 1 | 14 | 24 | 37 |
Markdown | 1 | 20 | 0 | 23 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 23.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 137 | |
▷ Static methods | 61 | 44.53% |
▷ Public methods | 135 | 98.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.46% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 32 | |
▷ Global constants | 32 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 11.58KB | 5.03KB | ▼ 56.58% |
faircoinwidget/icon_wallet.png | 0.62KB | 0.60KB | ▼ 3.13% |
faircoinwidget/icon_qrcode.png | 0.31KB | 0.26KB | ▼ 14.97% |
screenshot-1.png | 2.38KB | 1.65KB | ▼ 30.42% |
faircoinwidget/icon_faircoin.png | 0.97KB | 1.03KB | 0.00% |