Benchmarks
Plugin footprint 83% 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.22MB] [CPU: ▼1.88ms] Passed 4 tests
Server-side resources used by Ajax Contact Form
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 37.72 ▼1.45 |
Dashboard /wp-admin | 3.53 ▲0.22 | 45.73 ▼4.18 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 51.23 ▲1.56 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 92.28 ▼3.46 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 37.45 ▲3.65 |
Settings /wp-admin/admin.php?page=fwsacf-settings | 3.42 | 35.31 |
Submissions /wp-admin/edit.php?post_type=submissions | 3.49 | 36.27 |
Responders /wp-admin/edit.php?post_type=responders | 3.49 | 34.39 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Ajax Contact Form
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲93 | 13.67 ▼0.50 | 1.58 ▲0.02 | 41.66 ▼1.53 |
Dashboard /wp-admin | 2,234 ▲46 | 5.87 ▲0.93 | 108.29 ▼3.36 | 43.94 ▲2.21 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.05 ▼0.00 | 39.24 ▼1.29 | 35.83 ▲1.24 |
Add New Post /wp-admin/post-new.php | 1,556 ▲20 | 23.26 ▲0.01 | 603.17 ▼44.98 | 48.84 ▼14.30 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.16 ▼0.08 | 96.60 ▼11.22 | 40.74 ▼3.94 |
Settings /wp-admin/admin.php?page=fwsacf-settings | 1,029 | 2.06 | 25.20 | 32.62 |
Submissions /wp-admin/edit.php?post_type=submissions | 1,075 | 2.00 | 31.72 | 29.86 |
Responders /wp-admin/edit.php?post_type=responders | 1,081 | 2.00 | 30.53 | 29.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fws-ajax-contact-form/fws-ajax-contact-form.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/fws-ajax-contact-form/incl/shortcodes.php:101
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: forms, bootstrap, ajax, contact form, recaptcha
fws-ajax-contact-form/fws-ajax-contact-form.php Passed 13 tests
This is the main PHP file of "Ajax Contact Form" version 1.2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
84 characters long description:
An easy to use Ajax contact form with inbuilt features to prevent contact form spam.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,540 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 64 | 45 | 807 |
HTML | 1 | 39 | 6 | 337 |
PO File | 1 | 74 | 100 | 235 |
JavaScript | 1 | 3 | 1 | 82 |
CSS | 1 | 2 | 1 | 79 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 10.00% |
Functions | 21 | |
▷ Named functions | 20 | 95.24% |
▷ Anonymous functions | 1 | 4.76% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin