Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼9.35ms] Passed 4 tests
Server-side resources used by Dynamic Donation paypal payflow
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 40.40 ▼3.80 |
Dashboard /wp-admin | 3.50 ▲0.16 | 51.39 ▼12.36 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 47.80 ▼0.55 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 86.93 ▼20.69 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 36.39 ▲0.82 |
Export Template /wp-admin/edit.php?post_type=donation-form&page=subddft | 3.37 | 32.64 |
Payment Settings /wp-admin/edit.php?post_type=donation-form&page=subddfp | 3.39 | 32.44 |
Add New /wp-admin/post-new.php?post_type=donation-form | 3.46 | 44.42 |
Manage Fields /wp-admin/edit.php?post_type=donation-form&page=subddf | 3.37 | 30.78 |
All Donations /wp-admin/edit.php?post_type=donation-form | 3.47 | 38.78 |
Server storage [IO: ▲0.04MB] [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: 3 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_ddf_fields |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Dynamic Donation paypal payflow
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲96 | 14.63 ▲0.60 | 1.88 ▲0.20 | 44.22 ▲5.14 |
Dashboard /wp-admin | 2,235 ▲58 | 5.57 ▼0.01 | 87.33 ▼2.31 | 39.28 ▼3.30 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.02 ▼0.01 | 35.58 ▼1.28 | 32.88 ▼3.92 |
Add New Post /wp-admin/post-new.php | 1,559 ▲31 | 21.07 ▼1.91 | 685.90 ▲79.05 | 56.13 ▲4.51 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.25 ▲0.05 | 95.30 ▲0.37 | 42.82 ▲1.13 |
Export Template /wp-admin/edit.php?post_type=donation-form&page=subddft | 827 | 2.00 | 22.64 | 26.65 |
Payment Settings /wp-admin/edit.php?post_type=donation-form&page=subddfp | 991 | 1.68 | 23.11 | 27.04 |
Add New /wp-admin/post-new.php?post_type=donation-form | 1,535 | 2.51 | 47.83 | 52.77 |
Manage Fields /wp-admin/edit.php?post_type=donation-form&page=subddf | 1,107 | 2.04 | 22.91 | 40.59 |
All Donations /wp-admin/edit.php?post_type=donation-form | 1,101 | 1.96 | 30.79 | 30.42 |
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
You still need to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_ddf_fields
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/edit.php?post_type=donation-form&page=subddft
- > Notice in wp-content/plugins/dynamic-donation/wp-dynamic-donation.php+381
Undefined offset: 1
- > GET request to /wp-admin/edit.php?post_type=donation-form&page=subddf
- > Notice in wp-content/plugins/dynamic-donation/wp-dynamic-donation.php+869
Undefined variable: html
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
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/dynamic-donation/wp-dynamic-donation.php on line 40
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-donation/wp-dynamic-donation.php:42
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
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
7 plugin tags: paypal website pro donation, credit card donation, payflow pro donation, paypal donation, donation form...
dynamic-donation/wp-dynamic-donation.php 92% from 13 tests
The principal PHP file in "Dynamic Donation paypal payflow" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("dynamic-donation.php" instead of "wp-dynamic-donation.php")
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
Everything looks great! No dangerous files found in this plugin959 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 250 | 20 | 925 |
JavaScript | 1 | 7 | 0 | 34 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 78.00 |
▷ Minimum class complexity | 78.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin