Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/dogeapi-donate-widget/dogeAPI.php+151
Methods with the same name as their class will not be constructors in a future version of PHP; dogeapi_donate_plugin has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼58.60ms] Passed 4 tests
This is a short check of server-side resources used by DogeAPI Donate Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.37 | 5.08 ▼37.66 |
Dashboard /wp-admin | 2.12 ▼1.23 | 6.77 ▼59.48 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 5.72 ▼43.42 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 6.72 ▼93.85 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 5.06 ▼32.04 |
DogeAPI /wp-admin/options-general.php?page=DogeAPI | 2.12 | 6.15 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_dogeapi_donate_plugin |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DogeAPI Donate Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.39 ▼0.17 | 1.60 ▼0.26 | 46.88 ▲3.56 |
Dashboard /wp-admin | 2,202 ▲31 | 5.62 ▲0.08 | 91.15 ▼5.88 | 41.05 ▼1.16 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.01 | 38.64 ▲1.66 | 35.08 ▲0.66 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.17 ▼0.13 | 651.29 ▼50.23 | 51.20 ▼20.65 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.28 ▲0.02 | 97.67 ▼10.56 | 41.38 ▼4.78 |
DogeAPI /wp-admin/options-general.php?page=DogeAPI | 846 | 2.00 | 23.69 | 29.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/dogeapi-donate-widget/dogeAPI.php+151
Methods with the same name as their class will not be constructors in a future version of PHP; dogeapi_donate_plugin has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_dogeapi_donate_plugin
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=DogeAPI
- > Deprecated in wp-content/plugins/dogeapi-donate-widget/dogeAPI.php+151
Methods with the same name as their class will not be constructors in a future version of PHP; dogeapi_donate_plugin has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=DogeAPI
- > Deprecated in wp-content/plugins/dogeapi-donate-widget/dogeAPI.php+250
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=DogeAPI
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in dogeapi_donate_plugin is deprecated since version 4.3.0! Use __construct() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=DogeAPI
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=DogeAPI
- > Notice in wp-content/plugins/dogeapi-donate-widget/dogeAPI.php+14
Undefined index: action
- > GET request to /wp-admin/options-general.php?page=DogeAPI
- > Notice in wp-content/plugins/dogeapi-donate-widget/dogeAPI.php+35
Undefined variable: message
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dogeapi-donate-widget/dogeAPI.php:79
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (Donate widget with received total) image missing
dogeapi-donate-widget/dogeAPI.php 92% from 13 tests
The entry point to "DogeAPI Donate Widget" version 1.1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dogeapi-donate-widget.php" instead of "dogeAPI.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 plugin208 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 51 | 22 | 179 |
Markdown | 1 | 18 | 0 | 29 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
doegapi-donate.png | 1.85KB | 0.98KB | ▼ 46.80% |
screenshot-1.png | 39.18KB | 11.68KB | ▼ 70.19% |