Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.97ms] Passed 4 tests
Analyzing server-side resources used by User Logs
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 41.06 ▼3.02 |
Dashboard /wp-admin | 3.41 ▲0.11 | 45.76 ▼3.32 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 45.98 ▲0.48 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 88.16 ▼2.00 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 33.51 ▲0.94 |
Settings /wp-admin/admin.php?page=userlogs_settings | 3.31 | 42.65 |
User Logs /wp-admin/admin.php?page=userlogs | 3.36 | 35.20 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_user_logs |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
userlogs_cron_cycle |
userlogs_welcome |
Browser metrics Passed 4 tests
This is an overview of browser requirements for User Logs
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 13.30 ▼0.93 | 1.83 ▲0.02 | 43.74 ▼0.33 |
Dashboard /wp-admin | 2,233 ▲45 | 4.82 ▼1.04 | 97.72 ▼22.51 | 39.73 ▼7.28 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 1.98 ▼0.04 | 34.04 ▼1.61 | 32.10 ▼1.00 |
Add New Post /wp-admin/post-new.php | 1,569 ▲55 | 18.34 ▲0.75 | 616.63 ▼50.83 | 60.58 ▲7.04 |
Media Library /wp-admin/upload.php | 1,409 ▲24 | 4.24 ▼0.01 | 94.05 ▼2.63 | 42.08 ▼2.07 |
Settings /wp-admin/admin.php?page=userlogs_settings | 874 | 1.96 | 32.22 | 26.03 |
User Logs /wp-admin/admin.php?page=userlogs | 3,893 | 6.85 | 110.76 | 57.99 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/user-logs/user-logs.php
- > /wp-content/plugins/user-logs/classes/class-userlogs-main.php
- > /wp-content/plugins/user-logs/classes/class-userlogs-common.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/user-logs/templates/about.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/user-logs/templates/logs.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/user-logs/templates/settings.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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 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
6 plugin tags: user logs, activity logs, user activity, login logs, registration logs...
user-logs/user-logs.php 85% from 13 tests
"User Logs" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: The text domain should only use lowercase characters and dashes
- Requires at least: The required version number did not match the one declared in readme.txt ("4.9" instead of "5.2")
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
Everything looks great! No dangerous files found in this plugin1,283 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 237 | 222 | 996 |
JavaScript | 2 | 18 | 19 | 181 |
CSS | 2 | 12 | 5 | 76 |
Markdown | 1 | 22 | 0 | 30 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 4.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 6 | 25.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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