Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼4.23ms] Passed 4 tests
Analyzing server-side resources used by MiragetConnector
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 50.38 ▲11.75 |
Dashboard /wp-admin | 3.54 ▲0.20 | 51.23 ▼9.81 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 50.55 ▲2.05 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 90.98 ▼10.98 |
Media Library /wp-admin/upload.php | 3.41 ▲0.17 | 38.21 ▲1.84 |
Contact Us /wp-admin/admin.php?page=miraget_contact | 3.37 | 37.01 |
Admin Panel /wp-admin/admin.php?page=MiragetConnector_crm_plugin | 3.64 | 46.67 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
recovery_mode_email_last_sent |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for MiragetConnector
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,189 ▲443 | 13.56 ▼0.82 | 9.20 ▲7.40 | 26.07 ▼16.37 |
Dashboard /wp-admin | 2,287 ▲102 | 5.85 ▼0.04 | 102.40 ▲0.98 | 49.76 ▲6.45 |
Posts /wp-admin/edit.php | 2,173 ▲84 | 2.07 ▲0.02 | 36.44 ▼0.87 | 42.21 ▲6.82 |
Add New Post /wp-admin/post-new.php | 1,583 ▲64 | 15.58 ▼7.50 | 540.89 ▼131.31 | 114.76 ▲62.46 |
Media Library /wp-admin/upload.php | 1,469 ▲81 | 4.25 ▼0.18 | 101.82 ▲1.99 | 50.52 ▲5.25 |
Contact Us /wp-admin/admin.php?page=miraget_contact | 826 | 1.36 | 8.10 | 32.74 |
Admin Panel /wp-admin/admin.php?page=MiragetConnector_crm_plugin | 1,555 | 1.88 | 29.40 | 79.75 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- recovery_mode_email_last_sent
- 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
- > GET request to /wp-admin/admin.php?page=miraget_contact
- > Error in wp-content/plugins/miragetconnector/inc/Api/Callbacks/AdminCallbacks.php+28
Uncaught Error: Call to undefined method MiragetEmailingTemplate::render() in wp-content/plugins/miragetconnector/inc/Api/Callbacks/AdminCallbacks.php:28
Stack trace:
#0 wp-includes/class-wp-hook.php(310): Miraget\Api\Callbacks\AdminCallbacks->Miraget\Api\Callbacks\{closure}()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown
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 items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/miragetconnector/MiragetConnector.php
- > /wp-content/plugins/miragetconnector/templates/emailing.php
- > /wp-content/plugins/miragetconnector/templates/settings.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=miraget_contact
- > Javascript (severe) in unknown
/wp-content/plugins/miragetconnector/assets/js/miragetconnector.js?ver=1696988403 321:19 Uncaught TypeError: Cannot read properties of null (reading 'style')
- > GET request to /wp-admin/admin.php?page=miraget_contact
- > Javascript (severe) in unknown
/wp-content/plugins/miragetconnector/assets/js/miragetconnector.js?ver=1696988403 1484:22 Uncaught ReferenceError: pluginSelectedTable is not defined
- > GET request to /wp-admin/admin.php?page=MiragetConnector_crm_plugin
- > Network (severe)
wp-content/plugins/miragetconnector/assets/image/netsuit.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=MiragetConnector_crm_plugin
- > Javascript (severe) in unknown
/wp-content/plugins/miragetconnector/assets/js/miragetconnector.js?ver=1696988405 1487:24 Uncaught TypeError: Cannot read properties of null (reading 'length')
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (screenshot.png), #2 (screenshot2.png)
- Tags: There are too many tags (29 tag instead of maximum 10)
- Screenshots: Please describe screenshot #0 in miragetconnector/assets to your readme.txt
miragetconnector/MiragetConnector.php 85% from 13 tests
The principal PHP file in "MiragetConnector" v. 2.2.6 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("miragetconnector.php" instead of "MiragetConnector.php")
- Description: Keep the plugin description shorter than 140 characters (currently 242 characters long)
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 plugin3,402 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 538 | 427 | 1,745 |
JavaScript | 4 | 273 | 67 | 1,279 |
CSS | 1 | 42 | 12 | 377 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 139.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 1 | 5.56% |
Methods | 87 | |
▷ Static methods | 9 | 10.34% |
▷ Public methods | 60 | 68.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 27 | 31.03% |
Functions | 8 | |
▷ Named functions | 5 | 62.50% |
▷ Anonymous functions | 3 | 37.50% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
19 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/image/infoicon.png | 25.66KB | 10.90KB | ▼ 57.53% |
assets/image/servicenow.png | 3.28KB | 2.03KB | ▼ 38.16% |
assets/image/insightlys.png | 2.93KB | 1.92KB | ▼ 34.64% |
assets/image/zendesk.png | 3.28KB | 1.88KB | ▼ 42.84% |
assets/image/Splunk.png | 2.97KB | 1.75KB | ▼ 41.31% |