Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼146.67ms] Passed 4 tests
Analyzing server-side resources used by INgageHub Connect
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.18 ▲0.34 | 38.90 ▲5.35 |
Dashboard /wp-admin | 3.41 ▲0.36 | 45.76 ▼10.18 |
Posts /wp-admin/edit.php | 3.46 ▲0.36 | 47.60 ▼1.50 |
Add New Post /wp-admin/post-new.php | 5.71 ▲0.28 | 88.20 ▼577.56 |
Media Library /wp-admin/upload.php | 3.29 ▲0.29 | 35.79 ▲2.56 |
Campaigns /wp-admin/admin.php?page=ingagehub_menu_campaigns | 3.25 | 26.44 |
Options /wp-admin/admin.php?page=ingagehub_menu | 3.27 | 28.23 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 68 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for INgageHub Connect
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,718 ▲122 | 15.91 ▲0.08 | 8.46 ▼1.46 | 48.36 ▼2.94 |
Dashboard /wp-admin | 2,999 ▲65 | 6.12 ▲0.06 | 139.15 ▼12.64 | 128.48 ▲7.66 |
Posts /wp-admin/edit.php | 2,787 ▲48 | 2.69 ▲0.01 | 64.84 ▼5.58 | 84.42 ▼2.07 |
Add New Post /wp-admin/post-new.php | 1,697 ▲14 | 18.90 ▲0.13 | 387.47 ▲9.95 | 111.93 ▲0.91 |
Media Library /wp-admin/upload.php | 1,784 ▼26 | 4.99 ▼0.03 | 133.81 ▼18.71 | 141.42 ▲17.86 |
Campaigns /wp-admin/admin.php?page=ingagehub_menu_campaigns | 1,134 | 2.33 | 54.75 | 87.46 |
Options /wp-admin/admin.php?page=ingagehub_menu | 1,114 | 2.33 | 56.62 | 72.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 32× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/ingagehub-connect/menu_pages/campaigns_save3.php
- > /wp-content/plugins/ingagehub-connect/menu_pages/campaigns_table.php
- > /wp-content/plugins/ingagehub-connect/menu_pages/campaigns_add2.php
- > /wp-content/plugins/ingagehub-connect/menu_pages/campaigns_form2b1.php
- > /wp-content/plugins/ingagehub-connect/menu_pages/campaigns_edit2.php
- > /wp-content/plugins/ingagehub-connect/menu_pages/campaigns_edit3.php
- > /wp-content/plugins/ingagehub-connect/menu_pages/campaigns_cancel1.php
- > /wp-content/plugins/ingagehub-connect/menu_pages/campaigns_delete2.php
- > /wp-content/plugins/ingagehub-connect/menu_pages/campaigns_form2a.php
- > /wp-content/plugins/ingagehub-connect/components/services.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function com_ingagehub_plugin_dir_path() in wp-content/plugins/ingagehub-connect/classes/campaign.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: conversation, audience, marketing, engagement
ingagehub-connect/plugin.php 85% from 13 tests
This is the main PHP file of "INgageHub Connect" version 2.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("ingagehub-connect.php" instead of "plugin.php")
- Description: A good plugin description is longer than 10 characters (currently 9 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin4,238 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 41 | 598 | 47 | 3,005 |
JavaScript | 6 | 123 | 57 | 899 |
CSS | 4 | 15 | 1 | 168 |
Sass | 1 | 34 | 0 | 166 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 26.08 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 123 | |
▷ Static methods | 42 | 34.15% |
▷ Public methods | 112 | 91.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 8.94% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.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
14 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/delete_24x24.png | 1.24KB | 0.80KB | ▼ 35.56% |
images/add_24x24.png | 3.37KB | 0.86KB | ▼ 74.56% |
images/banner-541x71.png | 13.62KB | 5.90KB | ▼ 56.70% |
images/search_24x24.png | 0.53KB | 0.55KB | 0.00% |
images/arrow_down_24x24.png | 0.69KB | 0.28KB | ▼ 59.43% |