Benchmarks
Plugin footprint 83% from 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.26MB] [CPU: ▼5.50ms] Passed 4 tests
This is a short check of server-side resources used by Ajax Contact Forms (ACF SP)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 44.96 ▼1.40 |
Dashboard /wp-admin | 3.56 ▲0.26 | 45.62 ▼5.65 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 47.47 ▼3.36 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 84.63 ▼11.57 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 39.01 ▲4.34 |
Create form /wp-admin/post-new.php?post_type=acfw30_forms | 3.54 | 71.52 |
Forms /wp-admin/edit.php?post_type=acfw30_forms | 3.52 | 36.64 |
Server storage [IO: ▲1.31MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_register_subscription_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Ajax Contact Forms (ACF SP)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲108 | 13.20 ▼1.60 | 3.22 ▲1.45 | 41.73 ▼1.53 |
Dashboard /wp-admin | 2,235 ▲50 | 5.84 ▼0.03 | 97.69 ▼9.06 | 81.56 ▲36.51 |
Posts /wp-admin/edit.php | 2,118 ▲26 | 2.02 ▲0.03 | 36.54 ▼1.99 | 33.96 ▲2.22 |
Add New Post /wp-admin/post-new.php | 1,700 ▲186 | 24.65 ▲7.15 | 694.38 ▲10.38 | 56.38 ▲1.61 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.22 ▲0.03 | 102.61 ▼7.32 | 70.46 ▲23.19 |
Create form /wp-admin/post-new.php?post_type=acfw30_forms | 2,306 | 3.51 | 106.26 | 61.90 |
Forms /wp-admin/edit.php?post_type=acfw30_forms | 1,079 | 1.99 | 32.52 | 27.99 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_register_subscription_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 23× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: post in wp-content/plugins/ajax-contact-forms/templates/popup-form.php on line 3
- > PHP Notice
Undefined variable: post in wp-content/plugins/ajax-contact-forms/templates/form.php on line 5
- > PHP Notice
Undefined variable: post in wp-content/plugins/ajax-contact-forms/templates/form.php on line 10
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/ajax-contact-forms/templates/popup-form.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ajax-contact-forms/acfw30-functions.php:3
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/ajax-contact-forms/templates/form.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ajax-contact-forms/acfw30.php:14
- > PHP Notice
Undefined variable: post in wp-content/plugins/ajax-contact-forms/templates/popup-form.php on line 11
- > PHP Notice
Undefined variable: post in wp-content/plugins/ajax-contact-forms/templates/popup-form.php on line 7
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/ajax-contact-forms/templates/popup-form.php on line 4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Button 01), #2 (Button 02), #3 (Form 01), #4 (Form 02), #5 (Form 03), #6 (Settings 01), #7 (Settings 02), #8 (Settings 03), #9 (Settings 04)
ajax-contact-forms/acfw30.php 85% from 13 tests
The principal PHP file in "Ajax Contact Forms (ACF SP)" v. 1.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("ajax-contact-forms.php" instead of "acfw30.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Everything looks great! No dangerous files found in this plugin7,042 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 86 | 31 | 2,998 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 10 | 166 | 69 | 786 |
JavaScript | 4 | 91 | 51 | 460 |
PO File | 1 | 54 | 119 | 127 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 7.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 40 | |
▷ Named functions | 40 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-9.png | 3.79KB | 2.14KB | ▼ 43.56% |
screenshot-5.png | 12.52KB | 5.40KB | ▼ 56.84% |
screenshot-4.png | 14.14KB | 5.22KB | ▼ 63.06% |
screenshot-2.png | 5.87KB | 2.85KB | ▼ 51.50% |
screenshot-3.png | 13.45KB | 5.12KB | ▼ 61.89% |