Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.42ms] Passed 4 tests
An overview of server-side resources used by xmlrpc attacks blocker
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 35.03 ▼2.72 |
Dashboard /wp-admin | 3.38 ▲0.07 | 44.91 ▼0.44 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 45.57 ▼3.20 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 80.71 ▼19.33 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.08 ▲2.52 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Just a few items left to fix
- Illegal file modification found: 1 file (0.60KB) outside of "wp-content/plugins/xmlrpc-attacks-blocker/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
axab_options |
axab_errors |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for xmlrpc attacks blocker
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 13.19 ▼1.19 | 1.62 ▲0.09 | 43.11 ▲2.29 |
Dashboard /wp-admin | 2,232 ▲47 | 5.89 ▲0.08 | 97.69 ▼3.74 | 40.30 ▲0.76 |
Posts /wp-admin/edit.php | 2,118 ▲32 | 2.09 ▲0.08 | 40.44 ▲5.34 | 35.31 ▼2.38 |
Add New Post /wp-admin/post-new.php | 1,537 ▲16 | 23.05 ▼0.24 | 660.01 ▲0.86 | 51.34 ▼4.69 |
Media Library /wp-admin/upload.php | 1,414 ▲29 | 4.28 ▲0.05 | 107.12 ▲7.31 | 45.96 ▲3.91 |
Uninstaller [IO: ▲0.05MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Error in wp-content/plugins/xmlrpc-attacks-blocker/uninstall.php+6
Uncaught Error: Using $this when not in object context in wp-content/plugins/xmlrpc-attacks-blocker/uninstall.php:6
Stack trace:
#0 wp-admin/includes/plugin.php(1245): include_once()
#1 wp-admin/includes/plugin.php(960): uninstall_plugin() - Incomplete uninstall procedure, leaving 9 files (0.05MB) in the plugin directory
- (new file) css/style.css
- (new file) css/chosen-sprite.png
- (new file) plugin.php
- (new file) css/chosen-sprite@2x.png
- (new file) js/script.js
- (new file) js/chosen.jquery.min.js
- (new file) readme.txt
- (new file) css/chosen.min.css
- (new file) uninstall.php
- Zombie WordPress options detected upon uninstall: 9 options
- axab_options
- widget_theysaidso_widget
- can_compress_scripts
- recovery_mode_email_last_sent
- axab_errors
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/xmlrpc-attacks-blocker/plugin.php:29
- > PHP Warning
include_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/xmlrpc-attacks-blocker/plugin.php on line 28
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/file.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/xmlrpc-attacks-blocker/plugin.php on line 28
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/xmlrpc-attacks-blocker/plugin.php on line 28
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 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
4 plugin tags: attack, hack, xmlrpc, block
xmlrpc-attacks-blocker/plugin.php 92% from 13 tests
The main file in "xmlrpc attacks blocker" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("xmlrpc-attacks-blocker.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin319 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 64 | 13 | 305 |
CSS | 2 | 3 | 1 | 10 |
JavaScript | 2 | 0 | 1 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 43.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
css/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |