Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/quarkwidget/qrkdonation.php+44
Methods with the same name as their class will not be constructors in a future version of PHP; qrkdonation_widget has a deprecated constructor
Server metrics [RAM: ▼1.93MB] [CPU: ▼51.45ms] Passed 4 tests
Analyzing server-side resources used by QuarkWidget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.57 ▼34.43 |
Dashboard /wp-admin | 2.08 ▼1.23 | 4.84 ▼41.52 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 5.56 ▼39.39 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.49 ▼90.46 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.24 ▼29.13 |
QuarkCoin Donation Button /wp-admin/options-general.php?page=QuarkCoin-Donation-Button | 2.08 | 4.66 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_qrkdonationwidget-widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for QuarkWidget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲152 | 13.54 ▼1.05 | 8.12 ▲6.39 | 43.65 ▼6.95 |
Dashboard /wp-admin | 2,207 ▲16 | 4.86 ▼0.03 | 113.09 ▲11.71 | 41.43 ▼1.71 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 1.97 ▼0.01 | 36.61 ▼3.54 | 29.86 ▼5.17 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.66 ▲0.34 | 660.61 ▼0.44 | 51.17 ▼2.87 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.29 ▲0.04 | 92.52 ▼8.73 | 40.32 ▼4.54 |
QuarkCoin Donation Button /wp-admin/options-general.php?page=QuarkCoin-Donation-Button | 777 | 2.05 | 27.97 | 28.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/quarkwidget/qrkdonation.php+44
Methods with the same name as their class will not be constructors in a future version of PHP; qrkdonation_widget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_qrkdonationwidget-widget
- widget_recent-comments
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
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=QuarkCoin-Donation-Button
- > Deprecated in wp-content/plugins/quarkwidget/qrkdonation.php+44
Methods with the same name as their class will not be constructors in a future version of PHP; qrkdonation_widget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=QuarkCoin-Donation-Button
- > Deprecated in wp-content/plugins/quarkwidget/qrkdonation.php+64
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=QuarkCoin-Donation-Button
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in qrkdonation_widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=QuarkCoin-Donation-Button
- > Notice in wp-content/plugins/quarkwidget/qrkdonation_admin.php+2
Undefined index: qrkdon_hidden
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/quarkwidget/qrkdonation_admin.php:11
- > PHP Notice
Undefined index: qrkdon_hidden in wp-content/plugins/quarkwidget/qrkdonation_admin.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quarkwidget/qrkdonation.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: donate, button, coin, quark
quarkwidget/qrkdonation.php 92% from 13 tests
The entry point to "QuarkWidget" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("quarkwidget.php" instead of "qrkdonation.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,588 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 611 | 516 | 2,299 |
JavaScript | 1 | 14 | 31 | 236 |
CSS | 1 | 14 | 29 | 53 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 22.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.73 |
▷ 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 | 136 | |
▷ Static methods | 61 | 44.85% |
▷ Public methods | 134 | 98.53% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.47% |
Functions | 7 | |
▷ Named functions | 7 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon_wallet.png | 0.62KB | 0.60KB | ▼ 3.13% |
icon_quarkcoin.png | 3.66KB | 0.98KB | ▼ 73.25% |
icon_qrcode.png | 0.31KB | 0.26KB | ▼ 14.97% |