Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼139.71ms] Passed 4 tests
Server-side resources used by Anti Hacker Redirect
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 34.70 ▲11.73 |
Dashboard /wp-admin | 3.06 ▲0.01 | 52.25 ▲7.82 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 48.51 ▲3.87 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 100.63 ▼566.09 |
Media Library /wp-admin/upload.php | 3.01 ▼0.00 | 53.18 ▼4.42 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- The plugin illegally modified 1 file (0.78KB) outside of "wp-content/plugins/scare-hackers-off/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Anti Hacker Redirect: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲107 | 15.93 ▲0.40 | 9.58 ▲0.52 | 50.36 ▲3.00 |
Dashboard /wp-admin | 2,967 ▲36 | 5.90 ▼0.05 | 150.48 ▲3.78 | 115.73 ▲4.12 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▼0.00 | 70.49 ▼6.19 | 88.25 ▼6.55 |
Add New Post /wp-admin/post-new.php | 1,683 ▲102 | 18.56 ▲1.02 | 433.56 ▼106.39 | 112.06 ▼68.95 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.05 ▲0.03 | 177.60 ▼50.67 | 131.41 ▼38.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/scare-hackers-off/scarehackers.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% 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
Attributes that require attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
scare-hackers-off/scarehackers.php 92% from 13 tests
Analyzing the main PHP file in "Anti Hacker Redirect" version 1.1
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 ("scare-hackers-off.php" instead of "scarehackers.php")
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 detected21 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 9 | 13 | 21 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
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 | 2 | |
▷ Named functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin