Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼311.04ms] Passed 4 tests
This is a short check of server-side resources used by Calculate Contact Form 7
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 58.76 ▲4.56 |
Dashboard /wp-admin | 3.41 ▲0.00 | 33.59 ▼3.82 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 42.00 ▲2.98 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 97.54 ▼1,241.72 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 25.86 ▼1.58 |
Paypal Entries /wp-admin/admin.php?page=cf7costcaloc_paypal_entries | 3.10 | 18.73 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: 1 new table, no new options
New tables |
---|
wp_cf7costcaloc_forms |
Browser metrics Passed 4 tests
An overview of browser requirements for Calculate Contact Form 7
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,803 ▲49 | 15.78 ▼0.26 | 6.22 ▼0.13 | 3.00 ▲0.20 |
Dashboard /wp-admin | 2,879 ▲21 | 5.97 ▼0.20 | 154.41 ▲14.77 | 158.75 ▼5.94 |
Posts /wp-admin/edit.php | 2,685 ▼3 | 3.24 ▼0.00 | 74.41 ▲10.81 | 168.15 ▲22.03 |
Add New Post /wp-admin/post-new.php | 1,711 ▲50 | 20.79 ▲4.62 | 430.17 ▼1.53 | 162.12 ▼13.99 |
Media Library /wp-admin/upload.php | 1,695 ▼0 | 5.48 ▲0.06 | 185.12 ▲40.05 | 191.52 ▼8.40 |
Paypal Entries /wp-admin/admin.php?page=cf7costcaloc_paypal_entries | 28 | 0.94 | 0.03 | 17.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_cf7costcaloc_forms
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/cost-calculator-contact-form-7/cost-calculator-contactform7.php
- 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/cost-calculator-contact-form-7/admin/cf7costcaloc-export-csv.php:127
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cost-calculator-contact-form-7/admin/rangeslider.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cost-calculator-contact-form-7/admin/calculator.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=cf7costcaloc_paypal_entries
- > Network (severe)
wp-admin/admin.php?page=cf7costcaloc_paypal_entries - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 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
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #10, #11, #12, #2, #3, #4, #5, #6, #7, #8, #9 in cost-calculator-contact-form-7/assets to your readme.txt
- Contributors: Plugin contributors field is missing
cost-calculator-contact-form-7/cost-calculator-contactform7.php 85% from 13 tests
This is the main PHP file of "Calculate Contact Form 7" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: Name the main plugin file the same as the plugin slug ("cost-calculator-contact-form-7.php" instead of "cost-calculator-contactform7.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin2,998 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 434 | 37 | 1,506 |
CSS | 3 | 34 | 49 | 1,190 |
JavaScript | 2 | 48 | 7 | 302 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 18.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 3 | 6.12% |
▷ Public methods | 45 | 91.84% |
▷ Protected methods | 1 | 2.04% |
▷ Private methods | 3 | 6.12% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 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
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/star.png | 39.75KB | 10.35KB | ▼ 73.95% |