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.00MB] [CPU: ▼5.84ms] Passed 4 tests
Analyzing server-side resources used by Contact Form 7 Cost Calculator (Add-on for CF7)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 32.54 ▼6.04 |
Dashboard /wp-admin | 3.31 ▼0.03 | 43.67 ▼15.75 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.24 ▲3.45 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 83.52 ▼1.63 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.97 ▲0.06 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Contact Form 7 Cost Calculator (Add-on for CF7)
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲52 | 14.76 ▲0.47 | 1.75 ▼0.57 | 40.60 ▼7.00 |
Dashboard /wp-admin | 2,215 ▲24 | 4.84 ▼0.03 | 107.82 ▼17.30 | 41.08 ▼3.16 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.01 ▲0.00 | 41.09 ▲4.91 | 38.04 ▲5.12 |
Add New Post /wp-admin/post-new.php | 1,523 ▲9 | 17.80 ▲0.26 | 689.31 ▼5.59 | 58.99 ▲4.37 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.21 ▼0.02 | 97.37 ▼8.20 | 42.92 ▼2.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-cost-calculator/inc/frontend.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/cf7-cost-calculator/inc/tpl/admin-form.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/cf7-cost-calculator/inc/tpl/admin-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/cf7-cost-calculator/inc/tpl/admin-form-tags.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/cf7-cost-calculator/inc/tpl/admin-popup.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #3, #4 in cf7-cost-calculator/assets to your readme.txt
cf7-cost-calculator/cost-calculator.php 85% from 13 tests
The principal PHP file in "Contact Form 7 Cost Calculator (Add-on for CF7)" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 182 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cf7-cost-calculator.php" instead of "cost-calculator.php")
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
There were no executable files found in this plugin2,225 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 164 | 24 | 821 |
JavaScript | 6 | 418 | 164 | 712 |
CSS | 4 | 75 | 42 | 680 |
SVG | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 2 | 12.50% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/contact-form-7-multi-step-pro.png | 17.37KB | 5.84KB | ▼ 66.35% |