Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Error in wp-content/plugins/gamification-email-collector-mikehit/includes/class-mikehit-plugin.php+154
Uncaught Error: Class 'Mikehit_Admin_Settings' not found in wp-content/plugins/gamification-email-collector-mikehit/includes/class-mikehit-plugin.php:154
Stack trace:
#0 wp-content/plugins/gamification-email-collector-mikehit/includes/class-mikehit-plugin.php(75): Mikehit_Plugin->define_admin_hooks()
#1 wp-content/plugins/gamification-email-collector-mikehit/mikehit-plugin.php(72): Mikehit_Plugin->__construct()
#2 wp-content/plugins/gamification-email-collector-mikehit/mikehit-plugin.php(76): run_mikehit_plugin()
#3 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
#4 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▼0.01MB] [CPU: ▼12.75ms] Passed 4 tests
Analyzing server-side resources used by Popup Lead - Optin Email Marketing Tool for WooCommerce and Wordpress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.38 ▼9.18 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.02 ▼21.63 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.69 ▼0.29 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.49 ▼19.91 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.70 ▲1.49 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Popup Lead - Optin Email Marketing Tool for WooCommerce and Wordpress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.83 ▲0.21 | 1.78 ▼0.06 | 41.24 ▼2.88 |
Dashboard /wp-admin | 2,206 ▲18 | 5.91 ▲0.05 | 110.43 ▼8.78 | 42.82 ▲0.24 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.99 ▼0.05 | 39.92 ▲3.59 | 36.29 ▲2.08 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.51 ▼5.54 | 678.68 ▲17.97 | 64.21 ▲6.95 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▲0.01 | 103.31 ▼2.79 | 49.58 ▲3.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/gamification-email-collector-mikehit/admin/partials/mikehit-plugin-admin-display.php
- > /wp-content/plugins/gamification-email-collector-mikehit/public/partials/mikehit-plugin-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #3, #4, #5 in gamification-email-collector-mikehit/assets to your readme.txt
gamification-email-collector-mikehit/mikehit-plugin.php 77% from 13 tests
"Popup Lead - Optin Email Marketing Tool for WooCommerce and Wordpress" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 230 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("gamification-email-collector-mikehit.php" instead of "mikehit-plugin.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin487 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 205 | 643 | 445 |
PO File | 1 | 11 | 11 | 36 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
Analyzing 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.19 |
Average class complexity | 4.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 1.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 2 | 4.55% |
▷ Public methods | 38 | 86.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 13.64% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin