Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼289.00ms] Passed 4 tests
Analyzing server-side resources used by Ban Hammer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.14 | 61.48 ▲2.73 |
Dashboard /wp-admin | 3.50 ▲0.09 | 34.11 ▼0.68 |
Posts /wp-admin/edit.php | 3.72 ▲0.08 | 38.33 ▲2.38 |
Add New Post /wp-admin/post-new.php | 6.96 ▼0.01 | 95.86 ▼1,160.43 |
Media Library /wp-admin/upload.php | 3.38 ▲0.08 | 27.16 ▲2.81 |
Ban Hammer /wp-admin/tools.php?page=ban-hammer | 3.34 | 28.06 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Ban Hammer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲46 | 16.19 ▲1.05 | 6.11 ▼0.53 | 2.62 ▼0.25 |
Dashboard /wp-admin | 2,897 ▲39 | 6.16 ▲0.02 | 118.99 ▼28.12 | 226.82 ▼40.56 |
Posts /wp-admin/edit.php | 2,696 ▲11 | 3.24 ▲0.02 | 101.15 ▲36.46 | 166.68 ▲18.56 |
Add New Post /wp-admin/post-new.php | 1,775 ▲85 | 21.81 ▲1.18 | 457.90 ▲0.07 | 161.75 ▼43.15 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.42 ▼0.15 | 148.37 ▼8.37 | 192.21 ▲0.03 |
Ban Hammer /wp-admin/tools.php?page=ban-hammer | 1,051 | 2.49 | 94.50 | 120.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
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)
Good news, no errors were detected
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
- 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/ban-hammer/ban-hammer.php:65
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #4 (Users Menu, with Spammer Flag on), #5 (BuddyPress Error message)
ban-hammer/ban-hammer.php Passed 13 tests
The main PHP script in "Ban Hammer" version 2.8 is automatically included on every request by WordPress
56 characters long description:
Prevent people from registering with any email you list.
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
Good job! No executable or dangerous file extensions detected304 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 85 | 200 | 293 |
XML | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 55.00 |
▷ Minimum class complexity | 55.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 0 | 0.00% |
▷ Public methods | 21 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected