Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▲2.36ms] Passed 4 tests
A check of server-side resources used by Lead Captor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 41.63 ▲0.84 |
Dashboard /wp-admin | 3.38 ▲0.08 | 45.97 ▼1.80 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 49.57 ▲5.28 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 93.18 ▲9.43 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.72 ▲5.12 |
Add New /wp-admin/post-new.php?post_type=lead-subscriber | 3.34 | 42.08 |
All Subscribers /wp-admin/edit.php?post_type=lead-subscriber | 3.38 | 39.08 |
Lead Captor /wp-admin/tools.php?page=lead-captor-admin | 3.35 | 37.90 |
Server storage [IO: ▲1.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 83 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Lead Captor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,023 ▲277 | 13.99 ▼0.66 | 8.10 ▲6.20 | 86.58 ▲42.43 |
Dashboard /wp-admin | 2,234 ▲52 | 5.82 ▼0.02 | 105.46 ▼22.68 | 41.67 ▼2.07 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.00 ▼0.02 | 39.68 ▲1.66 | 34.15 ▼0.10 |
Add New Post /wp-admin/post-new.php | 1,567 ▲48 | 22.92 ▼0.33 | 609.94 ▼34.62 | 59.87 ▲1.15 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.18 ▼0.05 | 97.84 ▼0.87 | 43.55 ▼1.80 |
Add New /wp-admin/post-new.php?post_type=lead-subscriber | 1,532 | 2.52 | 49.13 | 71.81 |
All Subscribers /wp-admin/edit.php?post_type=lead-subscriber | 1,263 | 3.62 | 58.01 | 27.21 |
Lead Captor /wp-admin/tools.php?page=lead-captor-admin | 1,888 | 6.76 | 151.96 | 133.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/lead-captor/lead-captor/admin/partials/custom-post-types.php:4
- > PHP Fatal error
Uncaught Error: Call to a member function get_templates() on null in wp-content/plugins/lead-captor/public/partials/lead-captor-public-display.php:18
- > PHP Fatal error
Uncaught Error: Call to a member function get_templates() on null in wp-content/plugins/lead-captor/lead-captor/public/partials/lead-captor-public-display.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/lead-captor/admin/partials/lead-captor-admin-display.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/lead-captor/lead-captor/admin/partials/lead-captor-admin-display.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/lead-captor/admin/partials/custom-post-types.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/tools.php?page=lead-captor-admin
- > Network (severe)
wp-content/plugins/lead-captor/admin/images/quema-labs.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in lead-captor/assets to your readme.txt
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== lead-captor ===
)
lead-captor/lead-captor.php Passed 13 tests
"Lead Captor" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
75 characters long description:
Attractive popup forms on exit intent to convert visitors into subscribers.
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
No dangerous file extensions were detected3,715 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 748 | 1,327 | 1,804 |
CSS | 3 | 22 | 75 | 886 |
LESS | 5 | 129 | 78 | 846 |
JavaScript | 4 | 84 | 21 | 161 |
SVG | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 11.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 130 | |
▷ Static methods | 4 | 3.08% |
▷ Public methods | 111 | 85.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 14.62% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.90MB with 0.68MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/popup3.png | 129.00KB | 45.25KB | ▼ 64.93% |
admin/images/popup1.png | 123.94KB | 35.50KB | ▼ 71.36% |
admin/images/popup4.png | 137.96KB | 19.34KB | ▼ 85.98% |
lead-captor/admin/images/popup1.png | 123.94KB | 35.50KB | ▼ 71.36% |
lead-captor/admin/images/popup4.png | 137.96KB | 19.34KB | ▼ 85.98% |