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
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼7.52ms] Passed 4 tests
Analyzing server-side resources used by 46+ Beautiful Widgets For Capturing Leads - Treck
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 40.66 ▲4.32 |
Dashboard /wp-admin | 3.54 ▲0.20 | 50.88 ▼7.88 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 49.38 ▼2.97 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 88.14 ▼17.86 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 35.33 ▼1.37 |
Treck /wp-admin/options-general.php?page=treck | 3.37 | 38.68 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
treck_basics |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 46+ Beautiful Widgets For Capturing Leads - Treck
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲212 | 14.99 ▲0.62 | 1.84 ▲0.10 | 42.74 ▲1.69 |
Dashboard /wp-admin | 2,361 ▲170 | 6.61 ▲1.74 | 142.22 ▲42.09 | 42.16 ▼1.76 |
Posts /wp-admin/edit.php | 2,273 ▲181 | 3.77 ▲1.78 | 49.60 ▲10.15 | 29.41 ▼6.67 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 18.49 ▲0.27 | 622.27 ▼31.77 | 34.49 ▼34.07 |
Media Library /wp-admin/upload.php | 1,409 ▲18 | 4.40 ▲0.19 | 79.54 ▼20.87 | 40.87 ▼2.59 |
Treck /wp-admin/options-general.php?page=treck | 1,015 | 3.55 | 46.56 | 25.10 |
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
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- treck_basics
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-lead-generation/vendor/tareq1988/wordpress-settings-api-class/example/procedural-example.php:270
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-lead-generation/src/class-treck-admin.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-lead-generation/vendor/tareq1988/wordpress-settings-api-class/src/class.settings-api.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #2 (This is the second screen shot) image not found
easy-lead-generation/easy-lead-generation.php Passed 13 tests
"46+ Beautiful Widgets For Capturing Leads - Treck" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
108 characters long description:
Engage your website visitors with user-friendly popups, side-messages and notification bars, without coding.
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
There were no executable files found in this plugin1,465 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 275 | 499 | 1,301 |
JSON | 3 | 0 | 0 | 91 |
Markdown | 1 | 30 | 0 | 73 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 85 | |
▷ Static methods | 6 | 7.06% |
▷ Public methods | 77 | 90.59% |
▷ Protected methods | 3 | 3.53% |
▷ Private methods | 5 | 5.88% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.49MB with 0.27MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 20.77KB | 10.72KB | ▼ 48.39% |
assets/screenshot1.png | 79.50KB | 29.83KB | ▼ 62.48% |
assets/icon-128-128.png | 8.25KB | 4.55KB | ▼ 44.89% |
vendor/tareq1988/wordpress-settings-api-class/screenshot-1.png | 389.59KB | 115.93KB | ▼ 70.24% |