Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure had errors
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Server metrics [RAM: ▼1.90MB] [CPU: ▼55.47ms] Passed 4 tests
An overview of server-side resources used by SIWECOS
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 5.01 ▼39.39 |
Dashboard /wp-admin | 2.11 ▼1.19 | 6.42 ▼40.53 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 6.48 ▼49.17 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 7.90 ▼92.78 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 9.10 ▼25.51 |
SIWECOS /wp-admin/tools.php?page=siwecos | 2.12 | 5.90 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
siwecos_domaintoken |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by SIWECOS
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.27 ▼1.03 | 4.64 ▲2.89 | 42.83 ▼1.61 |
Dashboard /wp-admin | 2,210 ▲22 | 5.86 ▲1.03 | 105.31 ▲4.97 | 43.87 ▲2.53 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.00 ▼0.02 | 39.83 ▼2.54 | 36.03 ▼0.93 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 23.40 ▲0.13 | 698.60 ▲7.02 | 70.19 ▲16.15 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.30 ▲0.10 | 93.37 ▼9.05 | 41.53 ▼1.20 |
SIWECOS /wp-admin/tools.php?page=siwecos | 807 | 2.03 | 24.26 | 25.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- siwecos_domaintoken
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/tools.php?page=siwecos
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
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
Almost there! Just fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/siwecos/output/form.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/siwecos/siwecos.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/siwecos/output/validation.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: security
siwecos/siwecos.php Passed 13 tests
"SIWECOS" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
66 characters long description:
Validate your WordPress site against the SIWECOS.de security check
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin477 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 130 | 116 | 345 |
Sass | 1 | 4 | 0 | 54 |
PO File | 1 | 7 | 27 | 38 |
CSS | 1 | 3 | 13 | 31 |
JavaScript | 2 | 4 | 17 | 9 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 15.67 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 1 | 4.35% |
▷ Public methods | 9 | 39.13% |
▷ Protected methods | 14 | 60.87% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
There were not PNG files found in your plugin