Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼300.12ms] Passed 4 tests
This is a short check of server-side resources used by MW WP Form
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.25 | 53.81 ▲2.23 |
Dashboard /wp-admin | 3.59 ▲0.19 | 33.02 ▼0.30 |
Posts /wp-admin/edit.php | 3.82 ▲0.18 | 37.71 ▼0.77 |
Add New Post /wp-admin/post-new.php | 7.15 ▲0.15 | 94.55 ▼1,201.65 |
Media Library /wp-admin/upload.php | 3.53 ▲0.24 | 25.92 ▲2.65 |
MW WP Form /wp-admin/edit.php?post_type=mw-wp-form | 3.59 | 32.78 |
Add New /wp-admin/post-new.php?post_type=mw-wp-form | 4.04 | 48.22 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 143 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for MW WP Form
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,804 ▲62 | 15.89 ▲0.31 | 5.45 ▼0.05 | 2.11 ▲0.07 |
Dashboard /wp-admin | 2,929 ▲74 | 6.13 ▼0.03 | 113.63 ▼19.32 | 154.18 ▼6.70 |
Posts /wp-admin/edit.php | 2,725 ▲40 | 3.23 ▼0.01 | 64.24 ▲1.41 | 138.64 ▼2.91 |
Add New Post /wp-admin/post-new.php | 1,686 ▲25 | 16.67 ▲1.10 | 409.53 ▲4.79 | 154.15 ▲6.82 |
Media Library /wp-admin/upload.php | 1,735 ▲37 | 5.48 ▼0.06 | 135.16 ▼7.84 | 188.58 ▲7.03 |
MW WP Form /wp-admin/edit.php?post_type=mw-wp-form | 1,427 | 2.93 | 60.00 | 112.03 |
Add New /wp-admin/post-new.php?post_type=mw-wp-form | 8,522 | 12.50 | 365.21 | 255.78 |
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
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/mw-wp-form/templates/contact-data-list/admin-print-styles.php
- > /wp-content/plugins/mw-wp-form/templates/form-fields/checkbox.php
- > /wp-content/plugins/mw-wp-form/templates/contact-data/admin-print-styles.php
- 106× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/mw-wp-form/templates/chart/index.php:12
- > PHP Notice
Undefined variable: column in wp-content/plugins/mw-wp-form/templates/contact-data-list/column.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'MW_WP_Form_Abstract_Form_Field' not found in wp-content/plugins/mw-wp-form/classes/form-fields/class.datepicker.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/mw-wp-form/templates/form-fields/textarea.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/mw-wp-form/templates/admin-list/form-key.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/mw-wp-form/templates/form-fields/button_button.php:10
- > PHP Fatal error
Uncaught Error: Class 'MW_WP_Form_Abstract_Validation_Rule' not found in wp-content/plugins/mw-wp-form/classes/validation-rules/class.alpha.php:11
- > PHP Fatal error
Uncaught Error: Class 'MW_WP_Form_Abstract_Form_Field' not found in wp-content/plugins/mw-wp-form/classes/form-fields/class.zip.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/mw-wp-form/templates/admin/complete-message.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/mw-wp-form/templates/form-fields/button_submit.php:10
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
mw-wp-form/mw-wp-form.php 92% from 13 tests
"MW WP Form" version 4.4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 197 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin9,683 lines of code in 141 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 125 | 1,524 | 4,875 | 8,942 |
CSS | 8 | 43 | 125 | 434 |
JavaScript | 8 | 28 | 35 | 307 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 11.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 86 | |
▷ Abstract classes | 2 | 2.33% |
▷ Concrete classes | 84 | 97.67% |
▷ Final classes | 0 | 0.00% |
Methods | 551 | |
▷ Static methods | 36 | 6.53% |
▷ Public methods | 351 | 63.70% |
▷ Protected methods | 193 | 35.03% |
▷ Private methods | 7 | 1.27% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 15 | 100.00% |
▷ Public constants | 15 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/handle.png | 0.20KB | 0.10KB | ▼ 48.28% |