Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.28MB] [CPU: ▼153.35ms] Passed 4 tests
An overview of server-side resources used by dpaBadBotWP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.06 | 33.85 ▲0.57 |
Dashboard /wp-admin | 3.13 ▲0.07 | 40.73 ▲5.57 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 43.06 ▼0.39 |
Add New Post /wp-admin/post-new.php | 4.11 ▼1.33 | 47.07 ▼611.45 |
Media Library /wp-admin/upload.php | 3.07 ▲0.06 | 31.11 ▼2.14 |
DpaBadBotWPMenu /wp-admin/options-general.php?page=dpaBadBotWP_Menu | 3.16 | 31.13 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by dpaBadBotWP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,690 ▲94 | 15.93 ▲0.33 | 8.40 ▼2.57 | 46.85 ▼6.08 |
Dashboard /wp-admin | 2,972 ▲35 | 5.87 ▼0.09 | 130.05 ▼17.95 | 112.17 ▲8.75 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▼0.00 | 62.55 ▼6.53 | 98.66 ▲4.90 |
Add New Post /wp-admin/post-new.php | 1,879 ▲375 | 19.14 ▲0.61 | 354.77 ▼18.56 | 103.80 ▼1.44 |
Media Library /wp-admin/upload.php | 1,815 ▲11 | 5.03 ▼0.06 | 146.05 ▼10.92 | 123.19 ▲7.69 |
DpaBadBotWPMenu /wp-admin/options-general.php?page=dpaBadBotWP_Menu | 1,301 | 2.10 | 52.82 | 115.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
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=dpaBadBotWP_Menu
- > Warning in wp-content/plugins/dpabadbotwp/dpabadbotWP-functionality.php+215
fopen(wp-content/uploads/dpabadbotwp/.htaccess): failed to open stream: No such file or directory
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=dpaBadBotWP_Menu
- > Warning in wp-content/plugins/dpabadbotwp/dpabadbotWP-functionality.php+216
fwrite() expects parameter 1 to be resource, bool given
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=dpaBadBotWP_Menu
- > Warning in wp-content/plugins/dpabadbotwp/dpabadbotWP-functionality.php+217
fflush() expects parameter 1 to be resource, bool given
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=dpaBadBotWP_Menu
- > Warning in wp-content/plugins/dpabadbotwp/dpabadbotWP-functionality.php+218
fclose() expects parameter 1 to be resource, bool given
- > GET request to /wp-admin/options-general.php?page=dpaBadBotWP_Menu
- > Warning in wp-content/plugins/dpabadbotwp/dpabadbotWP-functionality.php+215
fopen(dpabadbot/config/wpposts.txt): failed to open stream: No such file or directory
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/dpabadbotwp/spmy_dpabadbot_form.php
- > /wp-content/plugins/dpabadbotwp/dpabadbotWP-functionality.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Shows that only one field data needs to be entered and that is the directory where The Bad Bot Exterminator is located. Also shows what IP addresses you have been using to access your WordPress site. screenshot-1.png), #2 (Shows who has logged in. If ID >= 1 user has logged in. If ID = 0 then the user could not login. The next column shows which pages they visited. screenshot-2.png)
dpabadbotwp/dpabadbotWP-functionality.php 77% from 13 tests
The main file in "dpaBadBotWP" v. 1.27 [20200927] serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dpabadbotwp.php" instead of "dpabadbotWP-functionality.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 1045 characters long)
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "1.27 [20200927]")
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
Good job! No executable or dangerous file extensions detected708 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 121 | 152 | 708 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 compressed PNG files occupy 0.50MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
sfc30.png | 8.25KB | 4.19KB | ▼ 49.23% |
ich30.png | 4.37KB | 4.11KB | ▼ 6.05% |
dpabadbotpix800.png | 35.91KB | 33.04KB | ▼ 8.00% |
bottomofpagestrip.png | 3.37KB | 3.17KB | ▼ 5.80% |
bbbh30.png | 4.81KB | 4.54KB | ▼ 5.49% |