Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼4.87ms] Passed 4 tests
This is a short check of server-side resources used by ValuePay for GiveWP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 41.01 ▼1.86 |
Dashboard /wp-admin | 3.47 ▲0.16 | 45.23 ▼5.58 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 47.02 ▲0.22 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 82.89 ▼12.27 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 34.32 ▲1.96 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ValuePay for GiveWP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.65 ▼0.96 | 1.86 ▲0.06 | 44.21 ▲0.24 |
Dashboard /wp-admin | 2,212 ▲24 | 4.81 ▼0.24 | 105.57 ▼14.16 | 40.68 ▼6.36 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.04 ▼0.00 | 40.26 ▲6.17 | 37.86 ▲3.24 |
Add New Post /wp-admin/post-new.php | 1,540 ▼4 | 23.20 ▲5.00 | 671.42 ▲34.50 | 51.83 ▼11.95 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.22 ▲0.04 | 99.47 ▼8.17 | 44.82 ▼2.65 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: dontation, valuepay, givewp, payment
valuepay-for-givewp/valuepay-givewp.php 92% from 13 tests
The entry point to "ValuePay for GiveWP" version 1.0.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("valuepay-for-givewp.php" instead of "valuepay-givewp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin915 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 325 | 109 | 907 |
JavaScript | 1 | 1 | 1 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 10.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 61.22% |
▷ Protected methods | 3 | 6.12% |
▷ Private methods | 16 | 32.65% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/pay-with-valuepay.png | 22.45KB | 7.44KB | ▼ 66.84% |
assets/images/valuepay-icon.png | 0.44KB | 0.48KB | 0.00% |