Benchmarks
Plugin footprint 83% from 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.02MB] [CPU: ▼8.93ms] Passed 4 tests
Analyzing server-side resources used by Crypto Voucher Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.07 ▼3.77 |
Dashboard /wp-admin | 3.34 ▼0.00 | 45.15 ▼10.83 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 48.66 ▲7.52 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 89.08 ▼20.26 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 31.66 ▼0.85 |
CV Widget Settings /wp-admin/options-general.php?page=dbi-example-plugin | 3.20 | 29.42 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_cv_widget_image_button |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Crypto Voucher Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲97 | 13.75 ▼0.63 | 15.02 ▲13.22 | 62.99 ▲20.52 |
Dashboard /wp-admin | 2,213 ▲28 | 4.85 ▼0.07 | 106.34 ▲5.40 | 42.05 ▲0.82 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.01 | 38.82 ▼1.15 | 35.36 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,547 ▲33 | 18.41 ▲0.73 | 608.09 ▼8.97 | 50.76 ▼9.24 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.27 ▲0.07 | 94.32 ▼4.97 | 41.81 ▼0.17 |
CV Widget Settings /wp-admin/options-general.php?page=dbi-example-plugin | 779 | 2.05 | 22.27 | 27.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- widget_cv_widget_image_button
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
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=dbi-example-plugin
- > Notice in wp-content/plugins/crypto-voucher-widget/wp-plugin.php+61
Trying to access array offset on value of type bool
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 items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/crypto-voucher-widget/cv_widget_image.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/crypto-voucher-widget/cv_widget_text_button.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/crypto-voucher-widget/cv_widget_image.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 26 tag instead of maximum 10
- Screenshots: Please a description for screenshot #0 in crypto-voucher-widget/assets to your readme.txt
crypto-voucher-widget/wp-plugin.php 92% from 13 tests
The primary PHP file in "Crypto Voucher Widget" version 2.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("crypto-voucher-widget.php" instead of "wp-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected251 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 45 | 67 | 220 |
SVG | 1 | 0 | 0 | 28 |
CSS | 1 | 0 | 0 | 1 |
JSON | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot.png | 33.48KB | 12.52KB | ▼ 62.59% |