Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.48MB] [CPU: ▼16.70ms] Passed 4 tests
An overview of server-side resources used by Viral Loops WP Integration
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 41.15 ▼5.11 |
Dashboard /wp-admin | 3.51 ▲0.20 | 45.27 ▼3.05 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 45.12 ▼4.43 |
Add New Post /wp-admin/post-new.php | 3.38 ▼2.51 | 37.12 ▼54.20 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 39.39 ▲2.54 |
Server storage [IO: ▲1.65MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 85 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Viral Loops WP Integration: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲127 | 14.80 ▲0.22 | 1.64 ▼0.20 | 38.55 ▼3.00 |
Dashboard /wp-admin | 2,278 ▲90 | 6.00 ▲1.06 | 100.09 ▼13.69 | 94.97 ▲52.27 |
Posts /wp-admin/edit.php | 2,158 ▲69 | 1.98 ▼0.05 | 36.25 ▼3.78 | 31.29 ▼3.66 |
Add New Post /wp-admin/post-new.php | 6,420 ▲4,887 | 27.84 ▲4.50 | 928.60 ▲191.63 | 40.35 ▼13.87 |
Media Library /wp-admin/upload.php | 1,457 ▲69 | 4.11 ▼0.17 | 114.96 ▲7.50 | 45.01 ▼1.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/viral-loops-wp-integration/public/partials/vloops-wp-plugin-public-display.php
- 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/viral-loops-wp-integration/public/elements/vl-block/vl-block.php:62
- > PHP Notice
Undefined variable: campaign_type in wp-content/plugins/viral-loops-wp-integration/admin/partials/vloops-wp-plugin-scripts.php on line 40
- > PHP Fatal error
Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/viral-loops-wp-integration/public/elements/vloops-divi-extension/includes/VloopsDiviExtension.php:3
- > PHP Notice
Undefined variable: campaign_type in wp-content/plugins/viral-loops-wp-integration/admin/partials/vloops-wp-plugin-scripts.php on line 19
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/viral-loops-wp-integration/public/elements/vloops-divi-extension/includes/modules/ViralLoopsModule/ViralLoopsModule.php:3
- > PHP Notice
Undefined variable: campaign_type in wp-content/plugins/viral-loops-wp-integration/admin/partials/vloops-wp-plugin-scripts.php on line 33
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/viral-loops-wp-integration/public/elements/elementor-widget/elementor-widget.php:7
- > PHP Notice
Undefined variable: campaign_type in wp-content/plugins/viral-loops-wp-integration/admin/partials/vloops-wp-plugin-scripts.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/viral-loops-wp-integration/public/elements/vloops-divi-extension/vloops-divi-extension.php:15
- > PHP Notice
Undefined variable: campaign_type in wp-content/plugins/viral-loops-wp-integration/admin/partials/vloops-wp-plugin-scripts.php on line 36
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: referrals, viral marketing, raffle, prelaunch campaign, giveaways...
viral-loops-wp-integration/vloops-wp-plugin.php 85% from 13 tests
The primary PHP file in "Viral Loops WP Integration" version 3.2.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: The principal plugin file should be the same as the plugin slug ("viral-loops-wp-integration.php" instead of "vloops-wp-plugin.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
There were no executable files found in this plugin39,041 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 35,819 |
PHP | 22 | 267 | 758 | 1,438 |
JavaScript | 18 | 61 | 167 | 630 |
Markdown | 1 | 213 | 0 | 454 |
SVG | 3 | 0 | 3 | 243 |
CSS | 12 | 36 | 19 | 227 |
JSX | 3 | 29 | 23 | 198 |
Sass | 2 | 2 | 0 | 32 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 11.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 64 | |
▷ Static methods | 2 | 3.12% |
▷ Public methods | 56 | 87.50% |
▷ Protected methods | 2 | 3.12% |
▷ Private methods | 6 | 9.38% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG files were detected