Benchmarks
Plugin footprint 83% from 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.12MB] [CPU: ▼6.30ms] Passed 4 tests
A check of server-side resources used by Wordfence Assistant
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.12 | 43.83 ▲4.72 |
Dashboard /wp-admin | 3.46 ▲0.12 | 46.08 ▼9.14 |
Posts /wp-admin/edit.php | 3.57 ▲0.18 | 52.39 ▲4.42 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.12 | 83.24 ▼23.92 |
Media Library /wp-admin/upload.php | 3.38 ▲0.12 | 35.50 ▲3.44 |
Server storage [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: no files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Wordfence Assistant
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲103 | 13.24 ▼1.13 | 1.72 ▲0.02 | 41.58 ▼3.90 |
Dashboard /wp-admin | 2,258 ▲73 | 5.83 ▲0.94 | 94.08 ▼27.30 | 90.00 ▲33.58 |
Posts /wp-admin/edit.php | 2,138 ▲49 | 2.00 ▼0.02 | 34.60 ▼4.94 | 32.26 ▼0.39 |
Add New Post /wp-admin/post-new.php | 1,571 ▲29 | 22.84 ▲4.70 | 711.67 ▲74.09 | 51.03 ▲1.36 |
Media Library /wp-admin/upload.php | 1,437 ▲52 | 4.16 ▼0.06 | 98.12 ▲3.13 | 45.79 ▲2.73 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% 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 50% 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
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wordfence-assistant/lib/mainMenu.php:2
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wordfence-assistant/lib/wordfenceAssistantClass.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wordfence-assistant/wordfence-assistant.php:17
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wordfence-assistant/lib/wordfenceAssistantClass.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
5 plugin tags: wordfence, wordfence assistant, wordfence security helper, wordfence security assistant, wordfence helper
wordfence-assistant/wordfence-assistant.php Passed 13 tests
This is the main PHP file of "Wordfence Assistant" version 1.0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
95 characters long description:
Wordfence Assistant - Helps Wordfence users with miscellaneous Wordfence data management tasks.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected830 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 87 | 73 | 570 |
JavaScript | 1 | 0 | 0 | 113 |
PO File | 1 | 41 | 49 | 95 |
CSS | 1 | 4 | 0 | 38 |
SVG | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 32.33 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 26 | 54.17% |
▷ Public methods | 42 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 12.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 3 | 42.86% |
▷ Class constants | 4 | 57.14% |
▷ Public constants | 4 | 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
No PNG files were detected