Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.45ms] Passed 4 tests
This is a short check of server-side resources used by WP Scanner - Performance and Security
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 43.41 ▲0.38 |
Dashboard /wp-admin | 3.33 ▼0.02 | 48.43 ▼14.88 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.08 ▲0.97 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 82.96 ▼19.72 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.06 ▲0.41 |
WP Scanner /wp-admin/options-general.php?page=wp-scanner | 3.25 | 32.07 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP Scanner - Performance and Security
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.22 ▼1.47 | 2.10 ▼0.11 | 45.28 ▲2.65 |
Dashboard /wp-admin | 2,218 ▲27 | 5.76 ▼0.15 | 106.27 ▲4.00 | 42.79 ▼2.48 |
Posts /wp-admin/edit.php | 2,103 ▲11 | 2.02 ▲0.00 | 36.02 ▼5.95 | 37.36 ▲0.10 |
Add New Post /wp-admin/post-new.php | 1,547 ▲28 | 23.08 ▼0.14 | 656.89 ▼5.33 | 49.96 ▼5.47 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.23 ▼0.03 | 97.04 ▼7.19 | 43.97 ▼0.40 |
WP Scanner /wp-admin/options-general.php?page=wp-scanner | 810 | 2.07 | 24.70 | 32.54 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
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 | 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 fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-scanner/views/notice.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-scanner/views/settings-page.php:32
- > PHP Notice
Undefined variable: message in wp-content/plugins/wp-scanner/views/notice.php on line 2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-scanner/views/key-field.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-scanner/views/status-field.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-scanner/views/secret-field.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: There are too many tags (13 tag instead of maximum 10)
wp-scanner/wp-scanner.php Passed 13 tests
The main PHP file in "WP Scanner - Performance and Security" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
46 characters long description:
WordPress performance and security monitoring.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected548 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 175 | 325 | 513 |
JavaScript | 2 | 7 | 0 | 35 |
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.30 |
Average class complexity | 12.40 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 1 | 1.92% |
▷ Public methods | 28 | 53.85% |
▷ Protected methods | 24 | 46.15% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin