Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/before-and-after/include/ba.settings.page.class.php+326
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
Server metrics [RAM: ▼1.71MB] [CPU: ▼53.26ms] Passed 4 tests
An overview of server-side resources used by Before And After: Lead Capture Forms For Wordpress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.29 ▼1.17 | 7.34 ▼35.53 |
Dashboard /wp-admin | 2.31 ▼1.04 | 6.50 ▼52.78 |
Posts /wp-admin/edit.php | 2.31 ▼1.05 | 7.31 ▼39.85 |
Add New Post /wp-admin/post-new.php | 2.31 ▼3.58 | 6.89 ▼84.86 |
Media Library /wp-admin/upload.php | 2.31 ▼0.92 | 6.32 ▼26.03 |
Error /wp-admin/admin.php?page=before_and_after_pro_error_page | 2.31 | 8.17 |
Upgrade To Pro /wp-admin/admin.php?page=before-and-after-upgrade-to-pro | 2.31 | 8.29 |
Add New Goal /wp-admin/post-new.php?post_type=b_a_goal | 2.31 | 6.47 |
About Plugin /wp-admin/admin.php?page=before-and-after-settings_aloha | 2.31 | 7.07 |
Privacy Notice /wp-admin/admin.php?page=before_and_after_pro_privacy_notice | 2.31 | 7.47 |
Forms /wp-admin/edit.php?post_type=b_a_form | 2.31 | 8.04 |
Conversions /wp-admin/admin.php?page=b_a_conversions | 2.31 | 7.07 |
Settings /wp-admin/admin.php?page=before-and-after-settings | 2.31 | 8.24 |
Help & Troubleshooting /wp-admin/admin.php?page=b_a_help_and_troubleshooting | 2.31 | 6.75 |
All Goals /wp-admin/edit.php?post_type=b_a_goal | 2.31 | 7.93 |
Server storage [IO: ▲2.67MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 140 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_before_after_goal_widget |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Before And After: Lead Capture Forms For Wordpress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,125 ▲390 | 14.14 ▼0.15 | 6.06 ▲3.88 | 29.90 ▼20.66 |
Dashboard /wp-admin | 2,360 ▲172 | 5.34 ▲0.47 | 110.21 ▲6.58 | 40.48 ▼2.70 |
Posts /wp-admin/edit.php | 2,249 ▲160 | 2.48 ▲0.47 | 43.19 ▼1.28 | 37.88 ▲0.41 |
Add New Post /wp-admin/post-new.php | 6,388 ▲4,855 | 22.65 ▼0.74 | 885.02 ▲195.48 | 42.41 ▼10.66 |
Media Library /wp-admin/upload.php | 1,545 ▲157 | 4.72 ▲0.46 | 94.43 ▼14.69 | 45.85 ▲0.59 |
Error /wp-admin/admin.php?page=before_and_after_pro_error_page | 930 | 2.26 | 28.15 | 24.26 |
Upgrade To Pro /wp-admin/admin.php?page=before-and-after-upgrade-to-pro | 1,197 | 2.42 | 30.94 | 85.75 |
Add New Goal /wp-admin/post-new.php?post_type=b_a_goal | 2,193 | 3.01 | 55.11 | 36.08 |
About Plugin /wp-admin/admin.php?page=before-and-after-settings_aloha | 1,064 | 2.28 | 32.37 | 42.16 |
Privacy Notice /wp-admin/admin.php?page=before_and_after_pro_privacy_notice | 938 | 2.28 | 27.86 | 23.96 |
Forms /wp-admin/edit.php?post_type=b_a_form | 2,136 | 2.35 | 39.82 | 31.80 |
Conversions /wp-admin/admin.php?page=b_a_conversions | 3,827 | 2.42 | 34.19 | 45.45 |
Settings /wp-admin/admin.php?page=before-and-after-settings | 1,744 | 7.17 | 140.82 | 42.23 |
Help & Troubleshooting /wp-admin/admin.php?page=b_a_help_and_troubleshooting | 1,004 | 2.19 | 32.86 | 27.91 |
All Goals /wp-admin/edit.php?post_type=b_a_goal | 2,148 | 2.39 | 34.88 | 32.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/before-and-after/include/ba.settings.page.class.php+326
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
- The uninstall procedure has failed, leaving 7 options in the database
- widget_before_after_goal_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 12 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=b_a_goal
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/before-and-after/include/ba.settings.page.class.php+326
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
- > GET request to /wp-admin/admin.php?page=before-and-after-settings
- > User deprecated in wp-includes/functions.php+5828
Hook media_buttons_context is deprecated since version 3.5.0! Use media_buttons instead.
SRP 0% 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
- 13× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/before-and-after/include/lib/GP_Custom_Forms/templates/fields/text-field.php
- > /wp-content/plugins/before-and-after/include/lib/GP_Custom_Forms/templates/fields/image-field.php
- > /wp-content/plugins/before-and-after/include/lib/GP_Custom_Forms/templates/fields/select-field.php
- > /wp-content/plugins/before-and-after/include/lib/GP_Custom_Forms/templates/fields/heading-field.php
- > /wp-content/plugins/before-and-after/include/lib/GP_Custom_Forms/templates/fields/phone-field.php
- > /wp-content/plugins/before-and-after/include/page.help.php
- > /wp-content/plugins/before-and-after/include/lib/GP_Custom_Forms/templates/fields/html-field.php
- > /wp-content/plugins/before-and-after/include/lib/GP_Custom_Forms/templates/fields/checkbox-field.php
- > /wp-content/plugins/before-and-after/include/lib/GP_Custom_Forms/templates/fields/radio-field.php
- > /wp-content/plugins/before-and-after/include/lib/GP_Custom_Forms/templates/fields/date-field.php
- 166× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: field in wp-content/plugins/before-and-after/include/lib/GP_Custom_Forms/templates/fields/email-field.php on line 2
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/before-and-after/include/Before_And_After_Update_Notices.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/before-and-after/include/lib/GP_Custom_Forms/templates/fields/radio-field.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/before-and-after/include/lib/GP_Custom_Forms/templates/fields/checkbox-field.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/before-and-after/include/lib/GP_Custom_Forms/templates/fields/date-field.php on line 5
- > PHP Notice
Undefined variable: field in wp-content/plugins/before-and-after/include/lib/GP_Custom_Forms/templates/fields/phone-field.php on line 7
- > PHP Notice
Undefined variable: field in wp-content/plugins/before-and-after/include/lib/GP_Custom_Forms/templates/fields/date-field.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/before-and-after/include/lib/GP_Custom_Forms/templates/fields/textarea-field.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/before-and-after/blocks/goal.php:50
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/before-and-after/include/lib/GP_Custom_Forms/templates/fields/checkbox-field.php on line 23
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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: You are using too many tags: 14 tag instead of maximum 10
before-and-after/before-and-after.php 92% from 13 tests
The main file in "Before And After: Lead Capture Forms For Wordpress" v. 3.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 351 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin22,893 lines of code in 99 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 46 | 1,599 | 3,024 | 9,598 |
PO File | 17 | 1,449 | 1,993 | 4,842 |
CSS | 13 | 313 | 75 | 4,236 |
JavaScript | 14 | 315 | 338 | 1,763 |
HTML | 2 | 60 | 0 | 1,130 |
SVG | 1 | 0 | 0 | 685 |
JSON | 5 | 0 | 0 | 358 |
Markdown | 1 | 58 | 0 | 281 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 34.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 33 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 454 | |
▷ Static methods | 5 | 1.10% |
▷ Public methods | 419 | 92.29% |
▷ Protected methods | 23 | 5.07% |
▷ Private methods | 12 | 2.64% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 1 | 14.29% |
▷ Class constants | 6 | 85.71% |
▷ Public constants | 6 | 100.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
11 PNG files occupy 0.39MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/upgrade-conversions.png | 143.72KB | 55.03KB | ▼ 61.71% |
assets/img/flags.png | 86.41KB | 26.26KB | ▼ 69.61% |
assets/img/upgrade/conversion-list.png | 35.72KB | 22.97KB | ▼ 35.68% |
assets/img/upgrade/hubspot-settings.png | 25.80KB | 15.11KB | ▼ 41.46% |
assets/img/upgrade/conversion-details-1.png | 27.88KB | 15.16KB | ▼ 45.64% |