Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/raisedonors/includes/class-raise-donors.php+185
Trying to access array offset on value of type bool
Server metrics [RAM: ▼2.53MB] [CPU: ▼341.49ms] Passed 4 tests
This is a short check of server-side resources used by RaiseDonors
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.84 ▼1.68 | 5.05 ▼46.26 |
Dashboard /wp-admin | 1.86 ▼1.55 | 4.29 ▼29.00 |
Posts /wp-admin/edit.php | 1.86 ▼1.78 | 4.48 ▼31.46 |
Add New Post /wp-admin/post-new.php | 1.86 ▼5.11 | 3.83 ▼1,259.22 |
Media Library /wp-admin/upload.php | 1.86 ▼1.44 | 4.57 ▼19.59 |
RaiseDonors /wp-admin/options-general.php?page=raise-donors-settings | 1.86 | 5.42 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 99 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
RaiseDonors: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,943 ▲189 | 16.98 ▲1.31 | 9.49 ▲3.20 | 2.42 ▼0.09 |
Dashboard /wp-admin | 2,941 ▲90 | 7.12 ▲0.87 | 132.73 ▼2.94 | 165.07 ▲3.88 |
Posts /wp-admin/edit.php | 2,743 ▲49 | 3.30 ▲0.05 | 66.74 ▲3.63 | 162.79 ▲21.51 |
Add New Post /wp-admin/post-new.php | 1,793 ▲132 | 21.34 ▲4.72 | 475.40 ▲80.42 | 168.45 ▲2.71 |
Media Library /wp-admin/upload.php | 1,750 ▲52 | 6.04 ▲0.56 | 125.63 ▼18.28 | 181.81 ▼2.95 |
RaiseDonors /wp-admin/options-general.php?page=raise-donors-settings | 1,062 | 3.12 | 53.32 | 121.57 |
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
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/raisedonors/includes/class-raise-donors.php+185
Trying to access array offset on value of type bool
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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=raise-donors-settings
- > Notice in wp-content/plugins/raisedonors/includes/class-raise-donors.php+195
Trying to access array offset on value of type bool
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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/raisedonors/includes/class-raise-donors-elementor-widget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: online fundraising, donation pages, raisedonors, donate
raisedonors/raise-donors.php 85% from 13 tests
The main file in "RaiseDonors" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("raisedonors.php" instead of "raise-donors.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected10,996 lines of code in 91 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 68 | 2,599 | 805 | 9,884 |
PHP | 16 | 211 | 624 | 671 |
CSS | 7 | 57 | 4 | 441 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 8 | 14.55% |
▷ Public methods | 47 | 85.45% |
▷ Protected methods | 2 | 3.64% |
▷ Private methods | 6 | 10.91% |
Functions | 10 | |
▷ Named functions | 5 | 50.00% |
▷ Anonymous functions | 5 | 50.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/favicon-32x32.png | 0.58KB | 0.49KB | ▼ 16.56% |