Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.58ms] Passed 4 tests
Server-side resources used by LeadBI Plugin for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.48 ▼3.77 |
Dashboard /wp-admin | 3.33 ▲0.02 | 43.66 ▼5.50 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.59 ▼2.69 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.71 ▼10.36 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.11 ▲1.90 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
leadbi_settings |
Browser metrics Passed 4 tests
LeadBI Plugin for WordPress: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲74 | 13.32 ▼1.06 | 1.86 ▼0.35 | 42.98 ▲0.38 |
Dashboard /wp-admin | 2,229 ▲38 | 4.91 ▲0.01 | 108.83 ▲3.10 | 82.33 ▲29.86 |
Posts /wp-admin/edit.php | 2,112 ▲20 | 2.03 ▲0.04 | 37.93 ▲0.52 | 34.59 ▲0.59 |
Add New Post /wp-admin/post-new.php | 1,532 ▲10 | 17.63 ▼5.55 | 765.03 ▲81.19 | 65.78 ▼4.34 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.28 ▲0.11 | 95.57 ▼11.96 | 77.22 ▲30.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- leadbi_settings
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/leadbi/frontend/partials/tag.php
- > /wp-content/plugins/leadbi/admin/partials/connect.php
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: nonce in wp-content/plugins/leadbi/admin/partials/connect.php on line 13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/leadbi/admin/partials/view.php:8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/leadbi/admin/partials/view.php on line 5
- > PHP Notice
Undefined variable: endpoint in wp-content/plugins/leadbi/admin/partials/connect.php on line 12
- > PHP Notice
Undefined variable: websiteId in wp-content/plugins/leadbi/frontend/partials/tag.php on line 2
- > PHP Notice
Undefined variable: settings in wp-content/plugins/leadbi/admin/partials/view.php on line 5
- > PHP Notice
Undefined variable: domain in wp-content/plugins/leadbi/admin/partials/connect.php on line 12
- > PHP Notice
Undefined variable: websiteDomain in wp-content/plugins/leadbi/frontend/partials/tag.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/leadbi/frontend/WooCommerce.php:8
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: tracking code, analytics, marketing analytics, leadbi, marketing automation...
leadbi/leadbi.php 92% from 13 tests
The primary PHP file in "LeadBI Plugin for WordPress" version 1.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 181 characters long)
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
Good job! No executable or dangerous file extensions detected721 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 166 | 212 | 589 |
JavaScript | 3 | 13 | 15 | 112 |
CSS | 2 | 5 | 6 | 20 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 3 | 8.11% |
▷ Public methods | 31 | 83.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 16.22% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/favicon-16x16.png | 1.10KB | 0.54KB | ▼ 50.66% |