Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼144.67ms] Passed 4 tests
A check of server-side resources used by Contact Form 7 Map Field
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 42.55 ▲17.69 |
Dashboard /wp-admin | 3.06 ▲0.01 | 51.53 ▼0.67 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 49.99 ▼0.14 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 98.89 ▼576.21 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 36.47 ▼1.66 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Contact Form 7 Map Field
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲108 | 15.92 ▲0.37 | 10.88 ▼4.20 | 48.92 ▼2.53 |
Dashboard /wp-admin | 2,970 ▲39 | 6.04 ▲0.10 | 157.18 ▼5.76 | 128.87 ▲3.31 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.01 | 74.85 ▲6.66 | 102.40 ▲5.80 |
Add New Post /wp-admin/post-new.php | 1,683 ▲68 | 18.77 ▼2.65 | 377.25 ▲77.09 | 113.96 ▲0.78 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.01 ▼0.03 | 154.57 ▼4.48 | 126.98 ▼11.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
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 everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 1× 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/contact-form-7-map-field/contact-form-7-map-field.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (How it looks in the form edititing.), #2 (Example of a form with map (location) input field.)
- Tags: You are using too many tags: 19 tag instead of maximum 10
contact-form-7-map-field/contact-form-7-map-field.php Passed 13 tests
This is the main PHP file of "Contact Form 7 Map Field" version 2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
118 characters long description:
This plugin provides a new field to Contact Form 7: a map with a coordinates marker, letting the user mark a location.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin215 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 5 | 26 | 111 |
HTML | 1 | 1 | 3 | 104 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
2 PNG files occupy 0.24MB with 0.14MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 40.20KB | 12.75KB | ▼ 68.28% |
screenshot-2.png | 205.34KB | 108.50KB | ▼ 47.16% |