Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲3.27MB] [CPU: ▲17.81ms] Passed 4 tests
Analyzing server-side resources used by Titan Anti-spam & Security
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.97 ▲1.51 | 48.72 ▲10.47 |
Dashboard /wp-admin | 7.21 ▲3.87 | 70.63 ▲7.07 |
Posts /wp-admin/edit.php | 7.26 ▲3.91 | 73.97 ▲29.32 |
Add New Post /wp-admin/post-new.php | 9.76 ▲3.87 | 121.50 ▲24.36 |
Media Library /wp-admin/upload.php | 7.07 ▲3.84 | 64.71 ▲29.64 |
Server storage [IO: ▲7.01MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 641 new files
Database: no new tables, 22 new options
New WordPress options |
---|
widget_theysaidso_widget |
titan_bruteforce_set_default_options |
can_compress_scripts |
titan_bruteforce_allowed_retries |
titan_bruteforce_lockouts |
titan_bruteforce_whitelist_usernames |
titan_bruteforce_blacklist_ips |
titan_last_check_update_time |
titan_bruteforce_valid_duration |
db_upgraded |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Titan Anti-spam & Security
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,782 ▼964 | 10.61 ▼2.56 | 1.66 ▲0.12 | 32.18 ▼5.14 |
Dashboard /wp-admin | 2,509 ▲329 | 5.76 ▲0.16 | 93.52 ▼4.08 | 46.60 ▲2.32 |
Posts /wp-admin/edit.php | 2,412 ▲312 | 2.14 ▲0.15 | 48.10 ▲14.50 | 37.58 ▲3.91 |
Add New Post /wp-admin/post-new.php | 1,821 ▲295 | 18.19 ▼4.99 | 623.44 ▼66.54 | 50.99 ▼5.85 |
Media Library /wp-admin/upload.php | 1,689 ▲289 | 4.22 ▲0.02 | 101.99 ▲2.78 | 43.66 ▼0.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 22 options in the database
- titan_bruteforce_whitelist_usernames
- titan_bruteforce_blacklist_ips
- titan_bruteforce_lockouts_total
- titan_bruteforce_valid_duration
- titan_bruteforce_allowed_retries
- titan_bruteforce_minutes_lockout
- titan_plugin_version
- widget_recent-posts
- titan_bruteforce_lockouts
- titan_bruteforce_gdpr
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/anti-spam/includes/vulnerabilities/views/themes-table.php
- > /wp-content/plugins/anti-spam/includes/check/views/check.php
- > /wp-content/plugins/anti-spam/includes/vulnerabilities/views/plugins-table.php
- > /wp-content/plugins/anti-spam/includes/vulnerabilities/views/vulnerabilities.php
- > /wp-content/plugins/anti-spam/includes/vulnerabilities/views/wordpress-table.php
- 94× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/anti-spam/views/pro-version.php:2
- > PHP Fatal error
Uncaught Error: Class 'WBCR\\Titan\\Client\\Loader' not found in wp-content/plugins/anti-spam/libs/api-client/entity/class.security.php:15
- > PHP Fatal error
Uncaught Error: Class 'WBCR\\Factory_Templates_116\\Pages\\Step_Custom' not found in wp-content/plugins/anti-spam/admin/pages/setup/steps/class-step-security-audit.php:11
- > PHP Fatal error
Uncaught Error: Class 'WBCR\\Titan\\Page\\Base' not found in wp-content/plugins/anti-spam/admin/pages/class-page-backup.php:7
- > PHP Fatal error
Uncaught Error: Class 'WBCR\\Titan\\Client\\Loader' not found in wp-content/plugins/anti-spam/libs/api-client/response/class.error.php:14
- > PHP Fatal error
Uncaught Error: Class 'ITSEC_Zxcvbn_Match' not found in wp-content/plugins/anti-spam/includes/tweaks/password-requirements/libs/zxcvbn-php/matchers/bruteforce.php:3
- > PHP Notice
Undefined variable: data in wp-content/plugins/anti-spam/views/quickstart.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WBCR\\Titan\\Client\\Loader' not found in wp-content/plugins/anti-spam/libs/api-client/entity/class.checkEmail.php:14
- > PHP Fatal error
Uncaught Error: Class 'ITSEC_Zxcvbn_Match' not found in wp-content/plugins/anti-spam/includes/tweaks/password-requirements/libs/zxcvbn-php/matchers/spatial.php:3
- > PHP Fatal error
Uncaught Error: Class 'WBCR\\Titan\\Client\\Loader' not found in wp-content/plugins/anti-spam/libs/api-client/entity/class.outdated.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #5 (Site Checker), #6 (Tweaks), #7 (Error Log), #8 (License)
anti-spam/anti-spam.php 92% from 13 tests
"Titan Anti-spam & Security" version 7.3.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin169,362 lines of code in 538 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 8 | 0 | 0 | 97,513 |
PHP | 289 | 6,989 | 14,529 | 25,885 |
JavaScript | 114 | 3,398 | 2,714 | 24,141 |
CSS | 100 | 2,450 | 592 | 16,704 |
LESS | 16 | 602 | 116 | 2,960 |
PO File | 7 | 714 | 901 | 2,081 |
Markdown | 3 | 24 | 0 | 72 |
SVG | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
An overview 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.42 |
Average class complexity | 14.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 193.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 28 | |
Interfaces | 2 | |
Traits | 1 | |
Classes | 222 | |
▷ Abstract classes | 22 | 9.91% |
▷ Concrete classes | 200 | 90.09% |
▷ Final classes | 4 | 2.00% |
Methods | 1,474 | |
▷ Static methods | 140 | 9.50% |
▷ Public methods | 1,205 | 81.75% |
▷ Protected methods | 193 | 13.09% |
▷ Private methods | 76 | 5.16% |
Functions | 81 | |
▷ Named functions | 55 | 67.90% |
▷ Anonymous functions | 26 | 32.10% |
Constants | 127 | |
▷ Global constants | 61 | 48.03% |
▷ Class constants | 66 | 51.97% |
▷ Public constants | 66 | 100.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
27 PNG files occupy 0.22MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/icon.png | 1.79KB | 1.71KB | ▼ 4.10% |
libs/factory/bootstrap/assets/images/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |
includes/check/assets/img/ok.png | 1.28KB | 0.88KB | ▼ 31.55% |
includes/check/assets/img/warning.png | 0.89KB | 0.71KB | ▼ 19.65% |
includes/check/assets/img/error.png | 0.81KB | 0.51KB | ▼ 36.93% |