Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲5.34MB] [CPU: ▲25.20ms] 50% from 4 tests
This is a short check of server-side resources used by Coinbase Commerce for Contact Form 7
Please fix the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,940.49ms on /wp-admin/admin.php?page=coinbase-commerce-for-contact-form-7)
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.34MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.21 ▲5.75 | 71.42 ▲17.64 |
Dashboard /wp-admin | 9.23 ▲5.92 | 81.20 ▲30.11 |
Posts /wp-admin/edit.php | 9.23 ▲5.87 | 77.09 ▲23.69 |
Add New Post /wp-admin/post-new.php | 9.71 ▲3.82 | 124.01 ▲29.36 |
Media Library /wp-admin/upload.php | 9.23 ▲6.00 | 68.08 ▲31.91 |
Coinbase Commerce for Contact Form 7 /wp-admin/admin.php?page=coinbase-commerce-for-contact-form-7 | 9.23 | 1,940.49 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.23 | 57.95 |
Server storage [IO: ▲3.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 188 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
fs_active_plugins |
widget_recent-posts |
fs_debug_mode |
widget_recent-comments |
widget_theysaidso_widget |
fs_accounts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Coinbase Commerce for Contact Form 7
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲86 | 13.66 ▼0.92 | 5.11 ▲3.01 | 31.14 ▼12.96 |
Dashboard /wp-admin | 2,238 ▲50 | 5.83 ▼0.04 | 102.88 ▼15.43 | 45.78 ▲3.68 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.03 ▲0.02 | 41.26 ▲3.17 | 36.49 ▲2.68 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 18.20 ▼5.02 | 616.79 ▼97.01 | 62.52 ▲10.64 |
Media Library /wp-admin/upload.php | 1,420 ▲35 | 4.24 ▼0.03 | 97.04 ▼15.50 | 48.07 ▲1.87 |
Coinbase Commerce for Contact Form 7 /wp-admin/admin.php?page=coinbase-commerce-for-contact-form-7 | 970 | 1.71 | 26.75 | 58.83 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,065 | 2.08 | 24.58 | 30.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/coinbase-commerce-for-contact-form-7/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- fs_debug_mode
- fs_accounts
- fs_active_plugins
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× 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/coinbase-commerce-for-contact-form-7/includes/class-webhook.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coinbase-commerce-for-contact-form-7/includes/class-user.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coinbase-commerce-for-contact-form-7/includes/class-admin-settings.php:49
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7 in coinbase-commerce-for-contact-form-7/assets to your readme.txt
coinbase-commerce-for-contact-form-7/coinbase-commerce-contact-form-7.php 92% from 13 tests
The main PHP file in "Coinbase Commerce for Contact Form 7" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("coinbase-commerce-for-contact-form-7.php" instead of "coinbase-commerce-contact-form-7.php")
Code Analysis 97% from 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
No dangerous file extensions were detected34,409 lines of code in 145 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 125 | 8,149 | 17,498 | 33,910 |
Markdown | 2 | 80 | 0 | 243 |
JavaScript | 4 | 39 | 59 | 216 |
JSON | 1 | 0 | 0 | 27 |
CSS | 13 | 0 | 0 | 13 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 86.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 1,286 | |
▷ Static methods | 201 | 15.63% |
▷ Public methods | 897 | 69.75% |
▷ Protected methods | 17 | 1.32% |
▷ Private methods | 372 | 28.93% |
Functions | 105 | |
▷ Named functions | 104 | 99.05% |
▷ Anonymous functions | 1 | 0.95% |
Constants | 148 | |
▷ Global constants | 101 | 68.24% |
▷ Class constants | 47 | 31.76% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/coinbase-commerce-for-contact-form-7.png | 11.26KB | 3.85KB | ▼ 65.82% |