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.44MB] [CPU: ▼3.43ms] Passed 4 tests
This is a short check of server-side resources used by Account Engagement
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.49 | 38.45 ▼2.75 |
Dashboard /wp-admin | 3.78 ▲0.43 | 46.33 ▼18.92 |
Posts /wp-admin/edit.php | 3.83 ▲0.47 | 49.95 ▲3.12 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 100.12 ▲4.83 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 40.83 ▲7.67 |
Account Engagement /wp-admin/options-general.php?page=pardot | 3.62 | 36.01 |
Server storage [IO: ▲1.49MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
pardot_crypto_key |
pardot-code-verifier |
can_compress_scripts |
widget_pardot-forms |
widget_pardot-dynamic-content |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Account Engagement
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲173 | 13.42 ▼1.22 | 8.53 ▲6.75 | 37.75 ▼5.01 |
Dashboard /wp-admin | 2,210 ▲32 | 5.58 ▼0.02 | 91.57 ▼26.46 | 42.16 ▼4.91 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.01 ▲0.00 | 40.58 ▲2.12 | 37.20 ▲2.62 |
Add New Post /wp-admin/post-new.php | 6,414 ▲4,888 | 28.90 ▲5.45 | 906.82 ▲256.61 | 40.49 ▼8.16 |
Media Library /wp-admin/upload.php | 1,415 ▲12 | 4.20 ▼0.01 | 100.38 ▲6.36 | 42.56 ▲0.96 |
Account Engagement /wp-admin/options-general.php?page=pardot | 906 | 1.67 | 26.81 | 26.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 9 options in the database
- db_upgraded
- widget_pardot-forms
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- pardot-code-verifier
- widget_recent-posts
- can_compress_scripts
- widget_pardot-dynamic-content
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pardot/includes/pardot-settings-class.php:1408
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pardot/includes/pardot-plugin-class.php:79
- > PHP Warning
Use of undefined constant MONTH_IN_SECONDS - assumed 'MONTH_IN_SECONDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/pardot/pardot.php on line 43
- > PHP Warning
Use of undefined constant MONTH_IN_SECONDS - assumed 'MONTH_IN_SECONDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/pardot/pardot.php on line 47
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pardot/includes/pardot-forms-widget-class.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pardot/includes/pardot-plugin-class.php:79
- > PHP Warning
Use of undefined constant PARDOT_API_CACHE_TIMEOUT - assumed 'PARDOT_API_CACHE_TIMEOUT' (this will throw an Error in a future version of PHP) in wp-content/plugins/pardot/includes/pardot-plugin-class.php on line 1325
- > PHP Warning
Use of undefined constant MONTH_IN_SECONDS - assumed 'MONTH_IN_SECONDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/pardot/pardot.php on line 39
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pardot/includes/popup.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (A Form block on a page)
pardot/pardot.php Passed 13 tests
The main PHP script in "Account Engagement" version 2.1.0 is automatically included on every request by WordPress
134 characters long description:
Connect your WordPress to Account Engagement with shortcode and widgets for campaign tracking, quick form access, and dynamic content.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin25,929 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 23,183 |
PHP | 13 | 624 | 2,211 | 2,201 |
JavaScript | 7 | 106 | 149 | 451 |
CSS | 3 | 12 | 10 | 58 |
Sass | 2 | 7 | 0 | 36 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 43.14 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 3.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 122 | |
▷ Static methods | 43 | 35.25% |
▷ Public methods | 112 | 91.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 8.20% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 7 | 41.18% |
▷ Class constants | 10 | 58.82% |
▷ Public constants | 10 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.52MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 58.66KB | 18.55KB | ▼ 68.38% |
images/salesforce-button.png | 1.99KB | 0.90KB | ▼ 55.03% |
screenshot-4.png | 92.90KB | 30.76KB | ▼ 66.89% |
images/salesforce-logo.png | 24.23KB | 10.67KB | ▼ 55.96% |
images/pardot-button.png | 1.76KB | 1.18KB | ▼ 32.78% |