Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼197.16ms] Passed 4 tests
This is a short check of server-side resources used by Easiest Contact Form for WordPress - AP Contact Form
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 31.69 ▲11.91 |
Dashboard /wp-admin | 3.09 ▲0.02 | 33.50 ▼5.01 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 31.20 ▲0.11 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 68.03 ▼781.17 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 21.50 ▼2.56 |
Server storage [IO: ▲1.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 2 new options
New WordPress options |
---|
ap_contact_form_settings |
widget_apcf_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easiest Contact Form for WordPress - AP Contact Form
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,854 ▲253 | 16.01 ▼0.01 | 9.81 ▲4.76 | 81.79 ▲2.96 |
Dashboard /wp-admin | 2,956 ▲63 | 6.24 ▲0.09 | 116.09 ▼14.50 | 170.95 ▲2.09 |
Posts /wp-admin/edit.php | 2,764 ▲58 | 3.24 ▼0.01 | 62.67 ▼4.76 | 133.27 ▼9.78 |
Add New Post /wp-admin/post-new.php | 2,091 ▼1,652 | 16.19 ▼2.99 | 384.23 ▼82.62 | 161.00 ▼12.43 |
Media Library /wp-admin/upload.php | 1,781 ▲29 | 5.55 ▲0.05 | 142.92 ▼6.88 | 183.69 ▼1.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 2 options
- widget_apcf_widget
- ap_contact_form_settings
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
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ap-contact-form/inc/backend/settings.php
- > /wp-content/plugins/ap-contact-form/inc/frontend/shortcode.php
- > /wp-content/plugins/ap-contact-form/inc/backend/widget.php
- > /wp-content/plugins/ap-contact-form/inc/backend/apcf-about.php
- > /wp-content/plugins/ap-contact-form/inc/backend/how-to.php
- > /wp-content/plugins/ap-contact-form/ap-contact-form.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: email form, enquiry forms, lead form, form, contact forms...
ap-contact-form/ap-contact-form.php Passed 13 tests
The entry point to "Easiest Contact Form for WordPress - AP Contact Form" version 1.0.7 is a PHP file that has certain tags in its header comment area
43 characters long description:
A simple contact form plugin by Accesspress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,026 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 104 | 63 | 765 |
SVG | 1 | 0 | 0 | 685 |
CSS | 3 | 15 | 24 | 253 |
PO File | 1 | 57 | 63 | 193 |
JavaScript | 2 | 18 | 19 | 130 |
PHP code Passed 2 tests
A short review 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.34 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/customize.png | 24.05KB | 8.41KB | ▼ 65.05% |
images/plugin.png | 12.50KB | 5.31KB | ▼ 57.50% |
images/theme.png | 52.01KB | 17.38KB | ▼ 66.59% |
images/select_arrow.png | 0.17KB | 0.21KB | 0.00% |