Benchmarks
Plugin footprint 65% from 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.74MB] [CPU: ▲2.13ms] Passed 4 tests
Server-side resources used by Contact Form by TotalForm - Next-gen Form Builder for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.22 ▲0.76 | 53.95 ▲10.65 |
Dashboard /wp-admin | 4.04 ▲0.74 | 58.03 ▲5.07 |
Posts /wp-admin/edit.php | 4.10 ▲0.74 | 56.57 ▲2.74 |
Add New Post /wp-admin/post-new.php | 6.68 ▲0.79 | 97.94 ▼7.44 |
Media Library /wp-admin/upload.php | 3.96 ▲0.73 | 42.90 ▲8.15 |
TotalForm /wp-admin/admin.php?page=totalform | 4.17 | 45.73 |
Server storage [IO: ▲8.46MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 763 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_totalform_forms |
wp_totalform_entries |
New WordPress options |
---|
totalform_version |
totalform_options |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
totalsuite_license |
can_compress_scripts |
Browser metrics Passed 4 tests
Contact Form by TotalForm - Next-gen Form Builder for WordPress: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲169 | 13.49 ▼0.74 | 8.58 ▲6.91 | 47.64 ▲0.94 |
Dashboard /wp-admin | 2,225 ▲51 | 5.67 ▲0.00 | 92.92 ▼1.22 | 44.31 ▼4.90 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.04 ▲0.05 | 33.84 ▼7.36 | 36.58 ▼1.05 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 23.26 ▲0.12 | 614.14 ▼2.60 | 57.41 ▲6.81 |
Media Library /wp-admin/upload.php | 1,433 ▲30 | 4.24 ▲0.03 | 94.31 ▼6.19 | 44.46 ▲1.19 |
Options /wp-admin/admin.php?page=totalform#/options | 1,371 | 8.90 | 134.92 | 71.04 |
TotalForm /wp-admin/admin.php?page=totalform | 1,254 | 8.55 | 115.67 | 37.97 |
Help /wp-admin/admin.php?page=totalform#/help | 1,380 | 8.72 | 93.97 | 37.03 |
Forms /wp-admin/admin.php?page=totalform#/forms | 1,254 | 8.57 | 87.15 | 38.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie tables detected upon uninstall: 2 tables
- wp_totalform_entries
- wp_totalform_forms
- Zombie WordPress options detected upon uninstall: 9 options
- widget_recent-posts
- widget_theysaidso_widget
- totalsuite_license
- widget_recent-comments
- can_compress_scripts
- totalform_options
- db_upgraded
- totalform_version
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 80% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 27 tag instead of maximum 10
totalform/plugin.php 62% from 13 tests
The principal PHP file in "Contact Form by TotalForm - Next-gen Form Builder for WordPress" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("totalform.php" instead of "plugin.php")
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
- Description: Please don't use more than 140 characters for the plugin description (currently 155 characters long)
- Requires PHP: Required version must be the same as the one declared in readme.txt ("7.0.0" instead of "7.0")
- Domain Path: Please prefix the domain path with a forward slash character ("/languages")
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
Good job! No executable or dangerous file extensions detected210,509 lines of code in 598 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 174,736 |
PHP | 582 | 7,470 | 16,848 | 34,474 |
CSS | 2 | 3 | 5 | 790 |
JavaScript | 7 | 0 | 2,278 | 465 |
SQL | 2 | 0 | 0 | 44 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 4.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 110 | |
Interfaces | 57 | |
Traits | 33 | |
Classes | 477 | |
▷ Abstract classes | 37 | 7.76% |
▷ Concrete classes | 440 | 92.24% |
▷ Final classes | 1 | 0.23% |
Methods | 2,484 | |
▷ Static methods | 254 | 10.23% |
▷ Public methods | 2,146 | 86.39% |
▷ Protected methods | 327 | 13.16% |
▷ Private methods | 11 | 0.44% |
Functions | 80 | |
▷ Named functions | 5 | 6.25% |
▷ Anonymous functions | 75 | 93.75% |
Constants | 162 | |
▷ Global constants | 1 | 0.62% |
▷ Class constants | 161 | 99.38% |
▷ Public constants | 160 | 99.38% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
modules/templates/DefaultTemplate/assets/module/cover.png | 10.97KB | 11.98KB | 0.00% |
modules/templates/DefaultTemplate/assets/module/icon.png | 3.04KB | 3.27KB | 0.00% |