Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.18ms] Passed 4 tests
This is a short check of server-side resources used by Instant Contact - Generate leads and convert them into Customers
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.55 ▼4.31 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.69 ▼4.27 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.86 ▼3.31 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.60 ▼12.84 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.77 ▲5.48 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Instant Contact - Generate leads and convert them into Customers: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲201 | 13.76 ▼0.55 | 5.45 ▲3.32 | 32.86 ▼10.08 |
Dashboard /wp-admin | 2,243 ▲55 | 5.15 ▼0.72 | 105.57 ▲1.80 | 41.44 ▲1.65 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.33 ▲0.17 | 38.50 ▼0.28 | 33.75 ▼0.80 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 17.63 ▼0.67 | 712.73 ▲66.48 | 37.05 ▼12.45 |
Media Library /wp-admin/upload.php | 1,419 ▲28 | 4.44 ▲0.24 | 97.64 ▼2.94 | 40.24 ▼4.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/instant-contact/instant-contact.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function instantContact_getOption() in wp-content/plugins/instant-contact/inc/dynamic.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/instant-contact/views/output.php:2
- > PHP Warning
Use of undefined constant INSTANT_CONTACT_VER - assumed 'INSTANT_CONTACT_VER' (this will throw an Error in a future version of PHP) in wp-content/plugins/instant-contact/views/options.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function instantContact_checked() in wp-content/plugins/instant-contact/views/options.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: chat box, third party embedments, quick chat, cf7, gravity forms
instant-contact/instant-contact.php Passed 13 tests
This is the main PHP file of "Instant Contact - Generate leads and convert them into Customers" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
75 characters long description:
instant contact widget - supports all cf7, gravity forms, and embedments...
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected636 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 8 | 1 | 387 |
PHP | 6 | 26 | 20 | 227 |
JavaScript | 1 | 1 | 0 | 22 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 44.15KB | 19.98KB | ▼ 54.74% |