Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼0.75ms] Passed 4 tests
A check of server-side resources used by MSync
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 47.51 ▲4.03 |
Dashboard /wp-admin | 3.58 ▲0.27 | 52.99 ▼3.27 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 54.28 ▲0.88 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 93.29 ▼2.11 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 37.93 ▲1.49 |
mSync Settings /wp-admin/options-general.php?page=msync_settings | 3.41 | 37.74 |
Add New /wp-admin/admin.php?page=builder | 3.43 | 39.88 |
About /wp-admin/admin.php?page=about | 3.41 | 34.55 |
All Forms /wp-admin/admin.php?page=msync | 3.43 | 34.25 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 34 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_msync_field_list |
wp_msync_form_fields |
wp_msync_forms |
New WordPress options |
---|
widget_theysaidso_widget |
widget_msync_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
MSync: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲165 | 13.66 ▼0.66 | 8.61 ▲6.91 | 45.78 ▲5.66 |
Dashboard /wp-admin | 2,249 ▲72 | 5.77 ▲0.10 | 89.73 ▼1.27 | 38.34 ▼4.43 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.30 ▲0.30 | 61.38 ▲18.90 | 37.21 ▼3.89 |
Add New Post /wp-admin/post-new.php | 6,284 ▲4,753 | 19.16 ▼4.01 | 906.09 ▲275.06 | 39.89 ▼8.32 |
Media Library /wp-admin/upload.php | 1,448 ▲51 | 4.26 ▲0.05 | 102.37 ▼6.21 | 41.65 ▼5.28 |
mSync Settings /wp-admin/options-general.php?page=msync_settings | 963 | 1.87 | 24.96 | 27.31 |
Add New /wp-admin/admin.php?page=builder | 1,042 | 1.91 | 32.23 | 29.87 |
About /wp-admin/admin.php?page=about | 822 | 1.86 | 25.05 | 25.80 |
All Forms /wp-admin/admin.php?page=msync | 1,004 | 1.87 | 25.28 | 23.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_msync_form_fields
- wp_msync_forms
- wp_msync_field_list
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_msync_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following items
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/msync/admin/partials/shortcode-form.php
- > /wp-content/plugins/msync/public/partials/form.php
- > /wp-content/plugins/msync/admin/partials/field-instance.php
- > /wp-content/plugins/msync/public/partials/msync-public-display.php
- > /wp-content/plugins/msync/admin/partials/field-settings.php
- > /wp-content/plugins/msync/admin/partials/msync-about.php
- 109× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Trying to get property 'input_type' of non-object in wp-content/plugins/msync/admin/partials/field-settings.php on line 24
- > PHP Notice
Trying to get property 'validation' of non-object in wp-content/plugins/msync/admin/partials/field-settings.php on line 42
- > PHP Notice
Trying to get property 'input_type' of non-object in wp-content/plugins/msync/admin/partials/field-settings.php on line 24
- > PHP Notice
Undefined variable: field_instance in wp-content/plugins/msync/admin/partials/field-instance.php on line 25
- > PHP Notice
Undefined variable: form_data in wp-content/plugins/msync/public/partials/form.php on line 3
- > PHP Notice
Undefined variable: field in wp-content/plugins/msync/admin/partials/field-settings.php on line 77
- > PHP Notice
Trying to get property 'id' of non-object in wp-content/plugins/msync/admin/partials/field-instance.php on line 19
- > PHP Notice
Trying to get property 'display_name' of non-object in wp-content/plugins/msync/admin/partials/field-instance.php on line 23
- > PHP Notice
Trying to get property 'id' of non-object in wp-content/plugins/msync/admin/partials/field-instance.php on line 15
- > PHP Notice
Trying to get property 'id' of non-object in wp-content/plugins/msync/admin/partials/field-instance.php on line 22
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: marketing automation, marketo, integration, tracking, analytics...
msync/mync.php 92% from 13 tests
"MSync" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("msync.php" instead of "mync.php")
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 plugin2,021 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 234 | 671 | 1,653 |
CSS | 2 | 7 | 41 | 219 |
JavaScript | 3 | 14 | 6 | 149 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 15.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 95 | |
▷ Static methods | 17 | 17.89% |
▷ Public methods | 83 | 87.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 12.63% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected