Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > User error in wp-content/plugins/bsecure-give/bsecure-give.php+613
bSecure Give plugin required Give plugin to be installed and activate.
Server metrics [RAM: ▲0.17MB] [CPU: ▼8.13ms] Passed 4 tests
Server-side resources used by bSecure for GiveWP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 37.40 ▼1.92 |
Dashboard /wp-admin | 3.48 ▲0.13 | 54.81 ▼7.08 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 47.90 ▲1.42 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 81.18 ▼24.08 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 36.39 ▲0.57 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
bSecure for GiveWP: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 13.58 ▼0.59 | 1.59 ▼0.11 | 41.27 ▼3.28 |
Dashboard /wp-admin | 2,208 ▲20 | 5.81 ▲0.78 | 96.22 ▼22.07 | 41.44 ▼5.62 |
Posts /wp-admin/edit.php | 2,091 ▼1 | 2.06 ▲0.05 | 38.67 ▲2.79 | 35.69 ▼0.94 |
Add New Post /wp-admin/post-new.php | 1,544 ▲8 | 18.20 ▼0.23 | 634.76 ▲12.98 | 69.88 ▲12.09 |
Media Library /wp-admin/upload.php | 1,393 ▲11 | 4.25 ▲0.08 | 101.02 ▲2.54 | 43.39 ▼1.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Bsecure_Give' not found in wp-content/plugins/bsecure-give/includes/class-bsecure-give-functions.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bsecure-give/bsecure-give.php:12
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Requires php: Version format is invalid
bsecure-give/bsecure-give.php Passed 13 tests
The entry point to "bSecure for GiveWP" version 1.0.0 is a PHP file that has certain tags in its header comment area
39 characters long description:
Multiple Payment Gateways in one place.
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
Everything looks great! No dangerous files found in this plugin1,535 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 544 | 229 | 1,071 |
CSS | 2 | 187 | 0 | 223 |
SVG | 6 | 1 | 0 | 159 |
JavaScript | 2 | 34 | 11 | 82 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 43.50 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 4.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 26 | |
▷ Static methods | 1 | 3.85% |
▷ Public methods | 25 | 96.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.85% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 20 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 20 | 100.00% |
▷ Public constants | 20 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/edit-icon.png | 0.25KB | 0.23KB | ▼ 6.32% |
assets/images/qpLogo-2.png | 1.87KB | 1.53KB | ▼ 17.83% |
assets/images/qpLogo-1.png | 0.98KB | 0.83KB | ▼ 14.71% |
assets/images/popup-close.png | 0.34KB | 0.25KB | ▼ 27.76% |
assets/images/qisst-pay.png | 1.35KB | 1.42KB | 0.00% |