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.04MB] [CPU: ▼298.37ms] Passed 4 tests
A check of server-side resources used by Don8
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.13 | 55.34 ▲0.16 |
Dashboard /wp-admin | 3.48 ▲0.07 | 33.29 ▼3.04 |
Posts /wp-admin/edit.php | 3.71 ▲0.06 | 36.63 ▼2.13 |
Add New Post /wp-admin/post-new.php | 6.95 ▼0.03 | 101.19 ▼1,188.47 |
Media Library /wp-admin/upload.php | 3.36 ▲0.06 | 25.01 ▲1.09 |
Don8 /wp-admin/options-general.php?page=don8 | 3.33 | 22.93 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
don8_currency |
widget_don8_widget |
don8_value |
don8_cause |
don8_paypal_email |
don8_button |
Browser metrics Passed 4 tests
A check of browser resources used by Don8
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,802 ▲48 | 16.21 ▲0.25 | 6.00 ▲0.25 | 2.67 ▼0.03 |
Dashboard /wp-admin | 2,899 ▲41 | 6.22 ▲0.07 | 119.36 ▼13.73 | 157.45 ▼0.20 |
Posts /wp-admin/edit.php | 2,698 ▲13 | 3.24 ▼0.00 | 62.99 ▼1.66 | 144.81 ▲2.13 |
Add New Post /wp-admin/post-new.php | 1,673 ▲12 | 18.58 ▲2.60 | 389.25 ▼23.41 | 159.49 ▲5.34 |
Media Library /wp-admin/upload.php | 1,702 ▲4 | 5.43 ▼0.12 | 134.34 ▼11.68 | 189.56 ▲3.69 |
Don8 /wp-admin/options-general.php?page=don8 | 1,369 | 4.48 | 68.72 | 129.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_don8_widget
- don8_paypal_email
- don8_cause
- don8_currency
- don8_button
- don8_value
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=don8
- > User deprecated in wp-includes/functions.php+5326
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=don8
- > User deprecated in wp-includes/functions.php+5326
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=don8
- > Notice in wp-content/plugins/don8/functions/uploader.php+9
Trying to access array offset on value of type bool
SRP 50% 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
Please take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/don8/admin/admin.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/don8/functions/form.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/don8/admin/widget.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/don8/don8.php:18
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=don8
- > Javascript (severe) in unknown
/wp-content/plugins/don8/js/script.js?ver=5.9.2 1:4 Uncaught ReferenceError: tinymce is not defined
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: widget, paypal, donate, donations, fundraising
don8/don8.php Passed 13 tests
The entry point to "Don8" version 0.4 is a PHP file that has certain tags in its header comment area
51 characters long description:
Making donations on your WordPress website simpler.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected323 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 51 | 104 | 274 |
JavaScript | 1 | 9 | 1 | 46 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 10.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 3.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin