Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.60ms] Passed 4 tests
An overview of server-side resources used by PayPal for Contact Form 7
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.48 ▲2.10 |
Dashboard /wp-admin | 3.34 ▲0.04 | 51.42 ▼0.20 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.26 ▼13.24 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 87.30 ▼8.06 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.69 ▼0.90 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
pal_contact_form_notice_shown |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by PayPal for Contact Form 7
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲37 | 14.40 ▼0.14 | 1.72 ▲0.10 | 44.36 ▲1.03 |
Dashboard /wp-admin | 2,204 ▲30 | 5.56 ▼0.11 | 88.61 ▼4.90 | 46.02 ▲7.13 |
Posts /wp-admin/edit.php | 2,109 ▲6 | 2.02 ▲0.01 | 36.77 ▼4.44 | 37.03 ▼2.71 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.03 ▼0.09 | 665.47 ▼20.53 | 63.96 ▲7.85 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.23 ▲0.12 | 113.16 ▲2.39 | 48.07 ▲1.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- pal_contact_form_notice_shown
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pal-for-contact-form/admin/partials/class-pal-for-contact-form-general-setting.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
pal-for-contact-form/pal-for-contact-form.php Passed 13 tests
Analyzing the main PHP file in "PayPal for Contact Form 7" version 1.0.4
73 characters long description:
Integrate PayPal with Contact Form 7. Develop by Official PayPal Partner.
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
Good job! No executable or dangerous file extensions detected1,048 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 139 | 411 | 1,010 |
JavaScript | 1 | 2 | 0 | 35 |
CSS | 1 | 0 | 0 | 3 |
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.46 |
Average class complexity | 20.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 4.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 12 | 26.67% |
▷ Public methods | 39 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 13.33% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin