Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.69MB] [CPU: ▼190.37ms] Passed 4 tests
An overview of server-side resources used by Spam Oborona YandexCleanWeb
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.94 ▼0.89 | 9.66 ▼27.82 |
Dashboard /wp-admin | 1.96 ▼1.10 | 8.83 ▼38.84 |
Posts /wp-admin/edit.php | 1.96 ▼1.15 | 9.62 ▼39.30 |
Add New Post /wp-admin/post-new.php | 1.96 ▼3.48 | 7.51 ▼655.53 |
Media Library /wp-admin/upload.php | 1.96 ▼1.04 | 9.46 ▼26.74 |
SpamOborona /wp-admin/options-general.php?page=spam-oborona-opt | 1.96 | 6.87 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 3 new options
New WordPress options |
---|
old_spam_comment_number |
spam_comment_number |
widget_spamoborona_1 |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Spam Oborona YandexCleanWeb
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,717 ▲145 | 15.78 ▼0.20 | 8.57 ▼0.87 | 50.18 ▼3.44 |
Dashboard /wp-admin | 2,978 ▲44 | 6.06 ▲0.07 | 148.55 ▼2.99 | 119.21 ▲4.17 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▲0.00 | 68.89 ▼0.07 | 96.61 ▲0.72 |
Add New Post /wp-admin/post-new.php | 1,618 ▼65 | 20.94 ▲2.21 | 286.33 ▼109.24 | 117.33 ▲2.95 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.03 ▲0.02 | 149.22 ▼33.99 | 121.16 ▼2.55 |
SpamOborona /wp-admin/options-general.php?page=spam-oborona-opt | 2,009 | 9.84 | 266.21 | 86.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5505
load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
- Zombie WordPress options were found after uninstall: 1 option
- widget_spamoborona_1
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=spam-oborona-opt
- > User deprecated in wp-includes/functions.php+5505
load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=spam-oborona-opt
- > Notice in wp-content/plugins/spam-oborona-yandexcleanweb/inc/widget-class.php+20
Trying to access array offset on value of type int
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=spam-oborona-opt
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
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
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/spam-oborona-yandexcleanweb/spob-opt.php:2
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/spam-oborona-yandexcleanweb/index-spam-oborona.php on line 35
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/spam-oborona-yandexcleanweb/index-spam-oborona.php:35
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/spam-oborona-yandexcleanweb/inc/widget-class.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/spam-oborona-yandexcleanweb/inc/widget-class.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Please describe screenshot #2 in spam-oborona-yandexcleanweb/assets to your readme.txt
spam-oborona-yandexcleanweb/index-spam-oborona.php 85% from 13 tests
Analyzing the main PHP file in "Spam Oborona YandexCleanWeb" version 1.3.3
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("spam-oborona-yandexcleanweb.php" instead of "index-spam-oborona.php")
- Description: Keep the plugin description shorter than 140 characters (currently 225 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected578 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 103 | 190 | 559 |
CSS | 1 | 6 | 0 | 19 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/help.png | 5.05KB | 3.13KB | ▼ 38.11% |