Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.99ms] Passed 4 tests
Analyzing server-side resources used by СберЛид
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.95 ▼3.88 |
Dashboard /wp-admin | 3.35 ▲0.04 | 46.24 ▲0.88 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 44.41 ▼5.53 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.84 ▼15.42 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.25 ▲1.56 |
СберЛид /wp-admin/options-general.php?page=sberlead/setting.php | 3.21 | 31.24 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for СберЛид
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.61 ▼0.76 | 1.58 ▼0.25 | 40.96 ▼3.84 |
Dashboard /wp-admin | 2,213 ▲25 | 4.87 ▲0.01 | 102.37 ▼7.23 | 41.93 ▲1.59 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 1.98 ▼0.03 | 34.34 ▼7.95 | 33.02 ▼0.93 |
Add New Post /wp-admin/post-new.php | 1,540 ▲17 | 23.29 ▲0.07 | 624.69 ▼28.54 | 50.74 ▼11.11 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.25 ▲0.08 | 96.61 ▼14.59 | 42.55 ▼4.35 |
СберЛид /wp-admin/options-general.php?page=sberlead/setting.php | 779 | 2.18 | 23.70 | 28.63 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=sberlead/setting.php
- > Notice in wp-content/plugins/sberlead/admin_panel.php+104
Trying to access array offset on value of type bool
SRP 50% 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× 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/sberlead/sberlead.php:25
- > 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 on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Contributors: Plugin contributors field is missing
sberlead/sberlead.php Passed 13 tests
The entry point to "СберЛид" version 2.0 is a PHP file that has certain tags in its header comment area
61 characters long description:
Добавление на сайт кода "СберЛид".
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin161 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 31 | 32 | 161 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 2 | 16.67% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected