Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/miraget-b2b-leads-generation/leadsgen-master.php+348
Undefined property: stdClass::$Token
Server metrics [RAM: ▲0.24MB] [CPU: ▲4.26ms] Passed 4 tests
A check of server-side resources used by Miraget B2B Leads generation
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 42.12 ▲2.18 |
Dashboard /wp-admin | 3.55 ▲0.25 | 50.13 ▲2.21 |
Posts /wp-admin/edit.php | 3.66 ▲0.31 | 48.95 ▲2.78 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 96.36 ▲13.41 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 42.78 ▲9.85 |
company history /wp-admin/admin.php?page=company_history | 3.41 | 32.64 |
MostVisistPage history /wp-admin/admin.php?page=MostVisistPage_history | 3.41 | 32.66 |
ActiveCompany history /wp-admin/admin.php?page=ActiveCompany_history | 3.41 | 29.30 |
Analytics history /wp-admin/admin.php?page=Analytics_history | 3.41 | 32.26 |
Server storage [IO: ▲0.24MB] [DB: ▲0.73MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 265 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_miragetgen_opt |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Miraget B2B Leads generation
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲117 | 13.24 ▼1.20 | 3.01 ▲1.05 | 44.11 ▼5.33 |
Dashboard /wp-admin | 2,212 ▲57 | 4.98 ▼0.64 | 112.03 ▲2.99 | 93.27 ▲51.06 |
Posts /wp-admin/edit.php | 2,114 ▲28 | 2.06 ▲0.07 | 41.76 ▲6.20 | 35.91 ▲2.98 |
Add New Post /wp-admin/post-new.php | 1,687 ▲149 | 22.64 ▼0.83 | 644.50 ▼5.92 | 51.66 ▼6.47 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.20 ▼0.09 | 102.52 ▲3.63 | 50.63 ▲7.00 |
company history /wp-admin/admin.php?page=company_history | 825 | 1.77 | 29.20 | 27.15 |
MostVisistPage history /wp-admin/admin.php?page=MostVisistPage_history | 975 | 2.11 | 28.42 | 32.42 |
ActiveCompany history /wp-admin/admin.php?page=ActiveCompany_history | 966 | 2.13 | 28.77 | 29.71 |
Analytics history /wp-admin/admin.php?page=Analytics_history | 955 | 3.41 | 77.07 | 30.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.73MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Analytics_history
- > Notice in wp-content/plugins/miraget-b2b-leads-generation/includes/functions.php+342
Undefined offset: 0
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Analytics_history
- > Notice in wp-content/plugins/miraget-b2b-leads-generation/includes/functions.php+348
Undefined offset: 2
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Analytics_history
- > Notice in wp-content/plugins/miraget-b2b-leads-generation/includes/functions.php+351
Undefined offset: 3
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ActiveCompany_history
- > Notice in wp-content/plugins/miraget-b2b-leads-generation/includes/functions.php+354
Undefined offset: 4
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Analytics_history
- > Notice in wp-content/plugins/miraget-b2b-leads-generation/includes/functions.php+345
Undefined offset: 1
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #0, #0, #0, #0, #0 in miraget-b2b-leads-generation/assets to your readme.txt
- Tags: There are too many tags (11 tag instead of maximum 10)
miraget-b2b-leads-generation/leadsgen-master.php 85% from 13 tests
The entry point to "Miraget B2B Leads generation" version 2.3.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("miraget-b2b-leads-generation.php" instead of "leadsgen-master.php")
- Description: The description should be shorter than 140 characters (currently 285 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,199 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 439 | 363 | 1,580 |
CSS | 1 | 54 | 21 | 550 |
JavaScript | 3 | 24 | 1 | 69 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 7.20 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 16 | 32.65% |
▷ Public methods | 47 | 95.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.08% |
Functions | 30 | |
▷ Named functions | 28 | 93.33% |
▷ Anonymous functions | 2 | 6.67% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
251 PNG files occupy 0.13MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/country/ki_16.png | 0.48KB | 0.49KB | 0.00% |
image/country/ro_16.png | 0.29KB | 0.24KB | ▼ 17.35% |
image/country/de_16.png | 0.23KB | 0.19KB | ▼ 16.17% |
image/country/bh_16.png | 0.25KB | 0.16KB | ▼ 35.77% |
image/country/lv_16.png | 0.23KB | 0.17KB | ▼ 28.09% |