Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.01MB] [CPU: ▼45.23ms] Passed 4 tests
An overview of server-side resources used by Interakt
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▼0.51 | 16.28 ▼26.43 |
Dashboard /wp-admin | 3.00 ▼0.31 | 20.80 ▼32.89 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 20.97 ▼31.24 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 17.96 ▼90.37 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 21.38 ▼16.98 |
Setup /wp-admin/admin.php?page=interakt_plugin | 3.00 | 18.86 |
Contact Form /wp-admin/admin.php?page=interakt_plugin_cf | 3.00 | 19.58 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 11 new options
New WordPress options |
---|
interakt_contactform_msgs_options |
interakt_manageapps_options |
interakt_mail_options |
widget_recent-posts |
widget_interaktsubscribe_widget |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
interakt_contactform_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Interakt
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲203 | 13.53 ▼1.19 | 9.18 ▲7.05 | 43.50 ▼0.51 |
Dashboard /wp-admin | 2,258 ▲81 | 5.79 ▲0.20 | 87.91 ▼3.44 | 61.69 ▲18.64 |
Posts /wp-admin/edit.php | 2,166 ▲63 | 2.27 ▲0.24 | 42.19 ▼3.21 | 36.54 ▼0.84 |
Add New Post /wp-admin/post-new.php | 1,737 ▲209 | 20.44 ▼2.81 | 665.27 ▼37.57 | 30.81 ▼20.91 |
Media Library /wp-admin/upload.php | 1,460 ▲60 | 4.47 ▲0.27 | 120.00 ▲7.32 | 48.41 ▼0.15 |
Setup /wp-admin/admin.php?page=interakt_plugin | 1,289 | 2.22 | 32.11 | 28.88 |
Contact Form /wp-admin/admin.php?page=interakt_plugin_cf | 1,268 | 2.10 | 28.42 | 46.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/wp-interakt-integration/interakt_for_wordpress.php+307
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 11 options in the database
- widget_recent-posts
- interakt_contactform_msgs_options
- widget_recent-comments
- interakt_mail_options
- db_upgraded
- interakt_manageapps_options
- can_compress_scripts
- widget_interaktsubscribe_widget
- widget_theysaidso_widget
- theysaidso_admin_options
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=interakt_plugin_cf
- > Notice in wp-content/plugins/wp-interakt-integration/interakt_for_wordpress.php+307
Trying to access array offset on value of type bool
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=interakt_plugin_cf
- > Notice in wp-content/plugins/wp-interakt-integration/interakt_for_wordpress.php+324
Trying to access array offset on value of type null
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=interakt_plugin
- > Notice in wp-content/plugins/wp-interakt-integration/interakt_for_wordpress.php+286
Undefined variable: setup_screen_id
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=interakt_plugin_cf
- > Notice in wp-content/plugins/wp-interakt-integration/interakt_for_wordpress.php+298
Undefined variable: contact_screen_id
- > GET request to /wp-admin/admin.php?page=interakt_plugin_cf
- > Warning in wp-content/plugins/wp-interakt-integration/class/class_ps_Interakt.php+574
Illegal string offset 'interakt_cf_recepient_email'
- > GET request to /wp-admin/admin.php?page=interakt_plugin_cf
- > Warning in wp-content/plugins/wp-interakt-integration/class/class_ps_Interakt.php+585
Illegal string offset 'interakt_cf_subject'
- > GET request to /wp-admin/admin.php?page=interakt_plugin_cf
- > Warning in wp-content/plugins/wp-interakt-integration/class/class_ps_Interakt.php+594
Illegal string offset 'interakt_cf_mail_body'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=interakt_plugin_cf
- > Warning in wp-content/plugins/wp-interakt-integration/class/class_ps_Interakt.php+522
Illegal string offset 'interakt_cf_success_msg'
SRP 0% 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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-interakt-integration/class/class_send_email_to_interakt.php
- > /wp-content/plugins/wp-interakt-integration/class/class_interakt_contact_form.php
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-interakt-integration/class/class_interakt_menu_metabox.php:54
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_order_types() in wp-content/plugins/wp-interakt-integration/class/class_syncing_order_data.php:19
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-interakt-integration/class/class_interakt_subscribe_widget.php:2
- > PHP Warning
require_once(wp-content/plugins/wp-interakt-integration/class/admin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-interakt-integration/class/nav-menuscopy.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-interakt-integration/class/class_interakt_subscribe_widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-interakt-integration/class/templatecopy.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-interakt-integration/class/class_create_dynamic_fields.php:11
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/wp-interakt-integration/class/admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-interakt-integration/class/nav-menuscopy.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: lead-capture, feedback form, users, feedback, email...
wp-interakt-integration/interakt_for_wordpress.php 92% from 13 tests
The primary PHP file in "Interakt" version 2.8.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-interakt-integration.php" instead of "interakt_for_wordpress.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin4,420 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 494 | 336 | 2,271 |
JavaScript | 10 | 314 | 32 | 1,209 |
CSS | 5 | 48 | 53 | 940 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 9.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 60 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 17 | 89.47% |
▷ Anonymous functions | 2 | 10.53% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/redcrossmark.png | 2.25KB | 2.25KB | 0.04% |
images/tick.png | 1.21KB | 1.07KB | ▼ 11.45% |
images/interakt_logo.png | 3.10KB | 0.66KB | ▼ 78.80% |