Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲1.29MB] [CPU: ▲18.74ms] 75% from 4 tests
An overview of server-side resources used by Disable Json API, Login Lockdown, XMLRPC, Pingback, Stop User Enumeration Anti Hacker Scan
Please have a look at the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 5,059.41ms on /wp-admin/admin.php?page=antihacker_my-custom-submenu-page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.36 ▲0.90 | 48.98 ▲7.98 |
Dashboard /wp-admin | 4.72 ▲1.41 | 75.38 ▲27.44 |
Posts /wp-admin/edit.php | 4.83 ▲1.47 | 71.49 ▲25.43 |
Add New Post /wp-admin/post-new.php | 7.31 ▲1.42 | 104.36 ▲14.09 |
Media Library /wp-admin/upload.php | 4.66 ▲1.43 | 68.20 ▲33.45 |
More Tools Same Author /wp-admin/admin.php?page=antihacker_new_more_plugins | 4.63 | 56.71 |
Dashboard /wp-admin/admin.php?page=anti_hacker_plugin | 5.61 | 911.00 |
Settings /wp-admin/admin.php?page=anti-hacker | 4.63 | 58.44 |
Blocked Visits Log /wp-admin/admin.php?page=antihacker_my-custom-submenu-page | 4.63 | 5,059.41 |
Go Pro /wp-admin/admin.php?page=antihacker_my-custom-submenu-page9 | 4.63 | 56.10 |
Scan For Malware /wp-admin/admin.php?page=antihacker_scan | 4.65 | 73.97 |
Server storage [IO: ▲4.12MB] [DB: ▲0.39MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 145 new files
Database: 8 new tables, 16 new options
New tables |
---|
wp_ah_tor |
wp_ah_stats |
wp_ah_scan_files |
wp_ah_rules |
wp_ah_scan |
wp_ah_visitorslog |
wp_ah_fingerprint |
wp_ah_blockeds |
New WordPress options |
---|
theysaidso_admin_options |
antihacker_safebrowsing |
antihacker_version |
anti_hacker_last_feedback |
antihacker_string_whitelist |
antihacker_installed |
widget_recent-posts |
antihacker_googlesafe_checked |
db_upgraded |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Disable Json API, Login Lockdown, XMLRPC, Pingback, Stop User Enumeration Anti Hacker Scan
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,951 ▲164 | 15.10 ▲0.86 | 3.27 ▲1.35 | 39.53 ▼1.82 |
Dashboard /wp-admin | 2,337 ▲160 | 6.60 ▲0.99 | 110.03 ▲21.34 | 77.01 ▲36.52 |
Posts /wp-admin/edit.php | 2,256 ▲156 | 3.22 ▲1.19 | 56.53 ▲18.74 | 39.90 ▲0.90 |
Add New Post /wp-admin/post-new.php | 1,626 ▲90 | 24.28 ▲1.33 | 622.97 ▲19.69 | 34.25 ▼25.47 |
Media Library /wp-admin/upload.php | 1,544 ▲144 | 5.59 ▲1.37 | 115.79 ▲20.18 | 74.68 ▲34.99 |
More Tools Same Author /wp-admin/admin.php?page=antihacker_new_more_plugins | 1,081 | 3.09 | 49.37 | 39.92 |
Dashboard /wp-admin/admin.php?page=anti_hacker_plugin | 1,693 | 3.15 | 86.79 | 65.27 |
Settings /wp-admin/admin.php?page=anti-hacker | 1,092 | 2.97 | 41.14 | 38.62 |
Blocked Visits Log /wp-admin/admin.php?page=antihacker_my-custom-submenu-page | 997 | 2.93 | 39.95 | 30.09 |
Go Pro /wp-admin/admin.php?page=antihacker_my-custom-submenu-page9 | 456 | 8.42 | 303.36 | 84.02 |
Scan For Malware /wp-admin/admin.php?page=antihacker_scan | 1,190 | 3.13 | 52.33 | 28.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 10 options
- bill_go_pro_hide
- antihacker_string_whitelist
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- antihacker_was_activated
- antihacker_installed
- theysaidso_admin_options
Smoke tests 25% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/antihacker/includes/functions/bill-catch-errors.php
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/antihacker/scan/functions_scan.php:90
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/antihacker/dashboard/circle_status.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/antihacker/dashboard/google_safe.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/antihacker/dashboard/circle_memory.php:25
- > PHP Fatal error
Uncaught Error: Class 'Antihacker\\WP\\Settings\\Page' not found in wp-content/plugins/antihacker/settings/options/plugin_options_tabbed.php:5
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/antihacker/dashboard/themes_and_plugins.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/antihacker/dashboard/root_folder.php:64
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/antihacker/dashboard/root_folder.php on line 69
- > PHP Fatal error
Uncaught Error: Call to undefined function bill_banners\\get_transient() in wp-content/plugins/antihacker/dashboard/mybanners.php:7
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/antihacker/dashboard/themes_and_plugins.php on line 6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=antihacker_scan
- > Network (severe)
http://antihackerplugin.com/wp-admin/admin-ajax.php?action=stopbadbots_grava_fingerprint&fingerprint=%23Europe%2FBucharest%23-120%23linux%20x86_64%23Linux%230%2Cfalse%2Cfalse - Failed to load resource: the server responded with a status of 400 (Bad Request)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Add images for these screenshots: #1 (Plugin Dashboard), #2 (Main Settings Page), #3 (Block Visits Log)
antihacker/antihacker.php Passed 13 tests
Analyzing the main PHP file in "Disable Json API, Login Lockdown, XMLRPC, Pingback, Stop User Enumeration Anti Hacker Scan" version 4.39
120 characters long description:
Improve security, prevent unauthorized access by restrict access to login to whitelisted IP, Firewall, Scanner and more.
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
Everything looks great! No dangerous files found in this plugin21,853 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 48 | 1,733 | 1,608 | 10,138 |
JavaScript | 24 | 1,824 | 1,006 | 6,788 |
CSS | 11 | 243 | 160 | 2,646 |
PO File | 2 | 728 | 967 | 2,281 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 8.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 83 | |
▷ Static methods | 16 | 19.28% |
▷ Public methods | 83 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 200 | |
▷ Named functions | 194 | 97.00% |
▷ Anonymous functions | 6 | 3.00% |
Constants | 78 | |
▷ Global constants | 78 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
41 PNG files occupy 0.95MB with 0.49MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/sort_asc.png | 1.09KB | 0.25KB | ▼ 77.46% |
images/support.png | 1.76KB | 1.28KB | ▼ 27.27% |
images/coupon.png | 24.96KB | 5.09KB | ▼ 79.61% |
images/info.png | 1.49KB | 1.28KB | ▼ 14.32% |
images/special-offer.png | 91.41KB | 37.14KB | ▼ 59.37% |