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
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▲0.93ms] Passed 4 tests
Server-side resources used by Coinwidget Shortcode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.61 ▼2.93 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.83 ▲1.48 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.11 ▲3.48 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.77 ▲5.73 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.78 ▲1.68 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Coinwidget Shortcode
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲150 | 13.64 ▼0.78 | 4.74 ▲2.66 | 43.14 ▼1.43 |
Dashboard /wp-admin | 2,208 ▲16 | 5.84 ▲0.89 | 102.41 ▼9.35 | 37.26 ▼2.47 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.00 ▼0.06 | 39.42 ▲2.62 | 35.01 ▲2.77 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 18.68 ▼4.60 | 628.21 ▲15.61 | 53.97 ▼4.37 |
Media Library /wp-admin/upload.php | 1,393 ▲11 | 4.20 ▲0.02 | 104.63 ▲5.48 | 43.68 ▲2.11 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
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
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/coinwidget-shortcode/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/coinwidget-shortcode/coinwidget-shortcode.php:16
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (The coinwidget button that how it will appear on the page), #2 (The expanded popup when the user clicks on the button.)
coinwidget-shortcode/coinwidget-shortcode.php Passed 13 tests
The main PHP script in "Coinwidget Shortcode" version 2.0 is automatically included on every request by WordPress
36 characters long description:
Shortcode for coinwidget.com buttons
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
There were no executable files found in this plugin3,097 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 608 | 515 | 2,351 |
CSS | 1 | 11 | 25 | 361 |
JavaScript | 1 | 13 | 27 | 318 |
HTML | 1 | 11 | 21 | 53 |
Markdown | 1 | 10 | 0 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 23.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.81 |
▷ 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 | 5 | |
▷ Named functions | 5 | 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
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
coinwidget.com/icon_dogecoin.png | 4.25KB | 1.23KB | ▼ 71.10% |
coinwidget.com/icon_wallet.png | 0.62KB | 0.60KB | ▼ 3.13% |
screenshot-2.png | 9.86KB | 5.23KB | ▼ 47.00% |
coinwidget.com/icon_qrcode.png | 0.31KB | 0.26KB | ▼ 14.97% |
coinwidget.com/icon_bitcoin.png | 1.78KB | 1.05KB | ▼ 40.82% |