Benchmarks
Plugin footprint 83% 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: ▲0.32MB] [CPU: ▼1.94ms] Passed 4 tests
An overview of server-side resources used by PVB Contact Form 7 Calculator Add-on
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.31 | 36.86 ▼3.36 |
Dashboard /wp-admin | 3.62 ▲0.32 | 47.93 ▼3.70 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 48.25 ▲0.51 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.32 | 92.45 ▼0.97 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 36.35 ▲0.29 |
Calculator Settings /wp-admin/admin.php?page=pvb-cf7-calculator-settings-general-settings | 3.52 | 34.83 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 89 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for PVB Contact Form 7 Calculator Add-on
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.28 ▼0.26 | 2.02 ▲0.16 | 39.09 ▼2.91 |
Dashboard /wp-admin | 2,197 ▲20 | 5.54 ▼0.11 | 83.42 ▼5.21 | 37.71 ▼2.35 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 1.98 ▲0.02 | 35.51 ▲1.44 | 31.71 ▲1.57 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.04 ▲0.17 | 605.26 ▼4.22 | 64.38 ▲14.87 |
Media Library /wp-admin/upload.php | 1,405 ▲2 | 4.21 ▲0.03 | 97.44 ▼4.53 | 42.75 ▼0.50 |
Calculator Settings /wp-admin/admin.php?page=pvb-cf7-calculator-settings-general-settings | 892 | 2.15 | 40.54 | 26.46 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/pvb-contact-form-7-calculator/pvb-cf7-calculator.php
- 20× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PVBCF7Calculator\\lib\\Math\\Internal\\Calculator' not found in wp-content/plugins/pvb-contact-form-7-calculator/lib/Math/Internal/Calculator/class-nativecalculator.php:21
- > PHP Fatal error
Uncaught Error: Class 'PVBCF7Calculator\\lib\\Math\\Exception\\MathException' not found in wp-content/plugins/pvb-contact-form-7-calculator/lib/Math/Exception/class-numberformatexception.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/pvb-contact-form-7-calculator/views/not-active-notice.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pvb-contact-form-7-calculator/views/tag-generator-calculation.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/pvb-contact-form-7-calculator/views/review-notice.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pvb-contact-form-7-calculator/settings/settings-general.php:22
- > PHP Fatal error
Uncaught Error: Class 'PVBCF7Calculator\\lib\\Math\\BigNumber' not found in wp-content/plugins/pvb-contact-form-7-calculator/lib/Math/class-biginteger.php:25
- > PHP Fatal error
Uncaught Error: Class 'PVBCF7Calculator\\lib\\Math\\BigNumber' not found in wp-content/plugins/pvb-contact-form-7-calculator/lib/Math/class-bigdecimal.php:21
- > PHP Fatal error
Uncaught Error: Class 'PVBCF7Calculator\\lib\\Math\\Exception\\MathException' not found in wp-content/plugins/pvb-contact-form-7-calculator/lib/Math/Exception/class-integeroverflowexception.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/pvb-contact-form-7-calculator/views/pro-notice.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: price calculator, contact form 7, stripe, mortgage calculator, calculator...
pvb-contact-form-7-calculator/pvb-cf7-calculator.php 85% from 13 tests
The main PHP file in "PVB Contact Form 7 Calculator Add-on" ver. 1.0.11 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pvb-contact-form-7-calculator.php" instead of "pvb-cf7-calculator.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 plugin5,617 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 911 | 2,390 | 3,419 |
HTML | 3 | 248 | 18 | 1,114 |
CSS | 5 | 99 | 191 | 641 |
JavaScript | 26 | 74 | 152 | 406 |
Markdown | 1 | 6 | 0 | 24 |
JSON | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 24.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 3 | 16.67% |
▷ Concrete classes | 15 | 83.33% |
▷ Final classes | 4 | 26.67% |
Methods | 257 | |
▷ Static methods | 28 | 10.89% |
▷ Public methods | 226 | 87.94% |
▷ Protected methods | 5 | 1.95% |
▷ Private methods | 26 | 10.12% |
Functions | 14 | |
▷ Named functions | 5 | 35.71% |
▷ Anonymous functions | 9 | 64.29% |
Constants | 27 | |
▷ Global constants | 1 | 3.70% |
▷ Class constants | 26 | 96.30% |
▷ Public constants | 26 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/wpSettingsFramework/assets/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png | 0.25KB | 0.15KB | ▼ 39.62% |
lib/wpSettingsFramework/assets/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png | 0.13KB | 0.18KB | 0.00% |
lib/wpSettingsFramework/assets/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png | 3.67KB | 1.93KB | ▼ 47.53% |
lib/wpSettingsFramework/assets/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
lib/wpSettingsFramework/assets/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png | 0.25KB | 0.15KB | ▼ 37.45% |