Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.29MB] [CPU: ▼5.41ms] Passed 4 tests
A check of server-side resources used by Stealthlead
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 35.15 ▼3.29 |
Dashboard /wp-admin | 3.60 ▲0.29 | 43.80 ▼7.45 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 48.98 ▲0.55 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.42 | 76.65 ▼10.61 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 34.20 ▼0.30 |
Settings /wp-admin/admin.php?page=stealthlead_account_config | 3.43 | 30.45 |
Advance - Add Offer /wp-admin/admin.php?page=stealthlead_offers_add_offer | 3.59 | 34.52 |
Advance - Offers /wp-admin/admin.php?page=stealthlead_offers_admin | 3.50 | 31.58 |
Server storage [IO: ▲0.22MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 47 new files
Database: 1 new table, 21 new options
New tables |
---|
wp_stealthlead_offers |
New WordPress options |
---|
widget_recent-posts |
stealthleadLastValidTotp |
widget_theysaidso_widget |
stealthleadMinuteLimit |
stealthleadMinuteCount |
widget_recent-comments |
theysaidso_admin_options |
stealthleadKey |
stealthleadEnabled |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Stealthlead
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,954 ▲183 | 13.75 ▼0.65 | 5.27 ▲3.31 | 38.20 ▼5.79 |
Dashboard /wp-admin | 2,256 ▲65 | 5.04 ▼0.86 | 112.05 ▲4.61 | 42.34 ▲0.48 |
Posts /wp-admin/edit.php | 2,139 ▲50 | 2.12 ▲0.09 | 40.87 ▲3.81 | 39.30 ▲2.05 |
Add New Post /wp-admin/post-new.php | 1,556 ▲42 | 23.50 ▲5.84 | 670.33 ▼41.45 | 54.13 ▼2.61 |
Media Library /wp-admin/upload.php | 1,432 ▲44 | 4.27 ▲0.04 | 97.55 ▼12.82 | 41.93 ▼6.27 |
Settings /wp-admin/admin.php?page=stealthlead_account_config | 1,028 | 1.81 | 24.77 | 29.99 |
Advance - Add Offer /wp-admin/admin.php?page=stealthlead_offers_add_offer | 1,710 | 6.75 | 143.66 | 60.95 |
Advance - Offers /wp-admin/admin.php?page=stealthlead_offers_admin | 974 | 1.79 | 25.02 | 26.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_stealthlead_offers
- The uninstall procedure has failed, leaving 21 options in the database
- stealthleadUserId
- stealthleadJsScript
- stealthleadMinuteLimit
- stealthleadEnabled
- db_upgraded
- widget_recent-comments
- stealthleadWebsiteUrl
- stealthleadKey
- stealthleadMinuteCount
- error
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=stealthlead_account_config
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
- 40 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=stealthlead_account_config
- > Deprecated in wp-content/plugins/stealthlead/JSON.php+726
Array and string offset access syntax with curly braces is deprecated
- > GET request to /wp-admin/admin.php?page=stealthlead_account_config
- > Deprecated in wp-content/plugins/stealthlead/JSON.php+116
Methods with the same name as their class will not be constructors in a future version of PHP; Services_JSON has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=stealthlead_account_config
- > Deprecated in wp-content/plugins/stealthlead/JSON.php+796
Methods with the same name as their class will not be constructors in a future version of PHP; Services_JSON_Error has a deprecated constructor
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/stealthlead/hotp.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stealthlead/stealthlead_offers.php:557
- > PHP Fatal error
Uncaught Error: Call to undefined function get_currentuserinfo() in wp-content/plugins/stealthlead/stealthlead_offers_new_offers.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/stealthlead/stealthlead_offers_admin.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stealthlead/stealthlead_offers.php:557
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/stealthlead/stealthlead_offers_manage_offer.php:166
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Donate link: Invalid url: ""
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
stealthlead/stealthlead.php 92% from 13 tests
"Stealthlead" version 1.0.2.8.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 172 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,580 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 565 | 679 | 2,078 |
CSS | 3 | 31 | 57 | 424 |
JavaScript | 2 | 7 | 0 | 78 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 25.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 7.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.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 | 20 | |
▷ Static methods | 4 | 20.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 52 | |
▷ Named functions | 52 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 100.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
28 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |