Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼0.40ms] Passed 4 tests
An overview of server-side resources used by First Contact Form
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 35.05 ▼8.13 |
Dashboard /wp-admin | 3.48 ▲0.13 | 58.15 ▼3.87 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 53.58 ▲7.39 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 95.76 ▲3.03 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 43.36 ▲9.09 |
All Contact Forms /wp-admin/edit.php?post_type=first_contact | 3.45 | 37.29 |
Add New /wp-admin/post-new.php?post_type=first_contact | 3.53 | 62.52 |
Server storage [IO: ▲2.92MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 147 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by First Contact Form
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,418 ▲647 | 17.68 ▲3.29 | 43.46 ▲41.53 | 38.34 ▼3.83 |
Dashboard /wp-admin | 2,433 ▲245 | 6.92 ▲1.06 | 140.94 ▲23.36 | 38.43 ▼5.14 |
Posts /wp-admin/edit.php | 2,337 ▲248 | 4.04 ▲2.04 | 55.11 ▲16.29 | 30.37 ▼3.07 |
Add New Post /wp-admin/post-new.php | 6,465 ▲4,946 | 28.71 ▲5.28 | 833.88 ▲175.67 | 34.03 ▼16.61 |
Media Library /wp-admin/upload.php | 1,489 ▲107 | 4.75 ▲0.52 | 85.91 ▼15.46 | 42.19 ▼5.00 |
All Contact Forms /wp-admin/edit.php?post_type=first_contact | 1,301 | 3.96 | 52.17 | 29.33 |
Add New /wp-admin/post-new.php?post_type=first_contact | 3,030 | 9.49 | 203.41 | 105.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/first-contact-form/fcf.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== first-contact-form ===
)
first-contact-form/fcf.php 92% from 13 tests
The entry point to "First Contact Form" version 1.0.7 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("first-contact-form.php" instead of "fcf.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin12,546 lines of code in 117 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 104 | 2,349 | 2,360 | 11,206 |
PHP | 3 | 46 | 27 | 815 |
SVG | 2 | 0 | 0 | 450 |
CSS | 8 | 0 | 3 | 75 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 32.50 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 5 | 15.15% |
▷ Public methods | 21 | 63.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 36.36% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/js-webshim/shims/jpicker/images/preview-opacity.png | 0.13KB | 0.09KB | ▼ 31.85% |
resources/js-webshim/shims/jpicker/images/Bars.png | 1.47KB | 11.70KB | 0.00% |
resources/js-webshim/shims/styles/forms.png | 3.33KB | 2.19KB | ▼ 34.16% |
resources/js-webshim/shims/jpicker/images/NoColor.png | 0.54KB | 0.60KB | 0.00% |
resources/js-webshim/shims/jpicker/images/Maps.png | 89.86KB | 138.29KB | 0.00% |