Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼136.30ms] Passed 4 tests
This is a short check of server-side resources used by GM Contact Form
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 27.45 ▲3.59 |
Dashboard /wp-admin | 3.09 ▲0.03 | 51.50 ▲16.60 |
Posts /wp-admin/edit.php | 3.14 ▲0.02 | 44.59 ▼3.59 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 120.69 ▼547.67 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 40.78 ▲2.48 |
GM Contact /wp-admin/options-general.php?page=gm_contact | 3.00 | 35.93 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by GM Contact Form
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,796 ▲159 | 16.25 ▲0.35 | 11.13 ▲2.57 | 54.46 ▲1.69 |
Dashboard /wp-admin | 2,972 ▲41 | 5.90 ▼0.26 | 155.53 ▼2.43 | 125.03 ▼6.87 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.01 | 89.01 ▲21.54 | 128.94 ▲33.27 |
Add New Post /wp-admin/post-new.php | 1,618 ▲3 | 21.56 ▲0.14 | 369.06 ▼23.19 | 157.29 ▼24.50 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.03 ▲0.01 | 202.48 ▲1.89 | 150.35 ▼4.93 |
GM Contact /wp-admin/options-general.php?page=gm_contact | 1,037 | 2.09 | 102.44 | 112.31 |
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
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
Please fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gm-contact-form/gm-contact-form.php:47
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gm-contact-form/gm-contact-email.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/class-phpmailer.php' (include_path='.:/usr/share/php') in wp-content/plugins/gm-contact-form/gm-contact-email.php on line 3
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/gm-contact-form/gm-contact-email.php on line 3
- > PHP Warning
require_once(ABSPATHWPINC/class-phpmailer.php): failed to open stream: No such file or directory in wp-content/plugins/gm-contact-form/gm-contact-email.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: contact form, form, email, ajax, javascript
gm-contact-form/gm-contact-form.php Passed 13 tests
The main file in "GM Contact Form" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
70 characters long description:
Simple contact form functionality. Example at gabrielmioni.com/contact
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
No dangerous file extensions were detected631 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 140 | 203 | 414 |
JavaScript | 1 | 52 | 88 | 168 |
CSS | 1 | 7 | 0 | 49 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 21.05% |
▷ Protected methods | 15 | 78.95% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There were not PNG files found in your plugin