Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼4.67ms] Passed 4 tests
Analyzing server-side resources used by Email Capture & Lead Generation
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 46.17 ▼0.62 |
Dashboard /wp-admin | 3.45 ▲0.10 | 54.46 ▼10.27 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 57.75 ▲1.82 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 90.55 ▼9.60 |
Media Library /wp-admin/upload.php | 3.37 ▲0.15 | 41.09 ▲3.93 |
Settings /wp-admin/admin.php?page=eclg-settings | 3.34 | 33.82 |
Integration /wp-admin/admin.php?page=eclg-integration | 3.34 | 37.32 |
Lists /wp-admin/admin.php?page=eclg-list | 3.37 | 37.65 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_eclg_subscribers |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Email Capture & Lead Generation
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲199 | 16.22 ▲1.63 | 5.86 ▲4.28 | 45.76 ▲5.58 |
Dashboard /wp-admin | 2,272 ▲95 | 7.58 ▲1.91 | 195.46 ▲101.16 | 41.65 ▼2.96 |
Posts /wp-admin/edit.php | 2,203 ▲100 | 6.32 ▲4.32 | 69.81 ▲28.75 | 37.15 ▼0.23 |
Add New Post /wp-admin/post-new.php | 1,560 ▲25 | 23.50 ▲0.54 | 584.44 ▼5.49 | 39.45 ▼12.99 |
Media Library /wp-admin/upload.php | 1,572 ▲172 | 8.55 ▲4.32 | 123.58 ▲16.16 | 42.76 ▼1.95 |
Settings /wp-admin/admin.php?page=eclg-settings | 1,015 | 6.98 | 93.13 | 39.01 |
Integration /wp-admin/admin.php?page=eclg-integration | 940 | 6.62 | 68.16 | 29.96 |
Lists /wp-admin/admin.php?page=eclg-list | 1,038 | 5.88 | 54.42 | 27.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_eclg_subscribers
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
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
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/email-capture-lead-generation/email-capture-lead-generation.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=eclg-settings
- > Console-api (warning) in wp-includes/js/dist/deprecated.min.js?ver=73ad3591e7bc95f4777a+1:627
wp.components.ClipboardButton is deprecated since version 5.8. Please use wp.compose.useCopyToClipboard instead.
Optimizations
Plugin configuration 90% 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
9 plugin tags: email newsletter widget, email capture, newsletter subscribe, newsletter signup, subscription...
email-capture-lead-generation/email-capture-lead-generation.php 77% from 13 tests
This is the main PHP file of "Email Capture & Lead Generation" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Domain Path: Please prefix the domain path with a forward slash character ("/languages")
- Description: Please keep the plugin description shorter than 140 characters (currently 181 characters long)
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,741 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 284 | 452 | 860 |
JavaScript | 5 | 203 | 28 | 701 |
CSS | 2 | 3 | 0 | 180 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 28.40 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 4.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
There were not PNG files found in your plugin