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 had errors
- > Error in wp-content/plugins/userlog/userlog.php+294
Uncaught Error: Cannot use object of type WP_Error as array in wp-content/plugins/userlog/userlog.php:294
Stack trace:
#0 wp-content/plugins/userlog/userlog.php(384): userlog_downloadgeodatabase()
#1 wp-includes/class-wp-hook.php(310): userlog_init()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.07ms] Passed 4 tests
An overview of server-side resources used by userlog
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.50 ▼5.61 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.73 ▼2.27 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.51 ▲1.77 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.25 ▲3.27 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.50 ▲1.83 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_userlog |
New WordPress options |
---|
userlog_timezone |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
userlog_databaselastupdate |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
userlog_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for userlog
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▼0.29 | 1.78 ▼0.29 | 41.86 ▼5.20 |
Dashboard /wp-admin | 2,197 ▲12 | 5.83 ▼0.19 | 98.37 ▼17.11 | 38.82 ▼7.08 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.01 ▼0.00 | 40.13 ▲5.33 | 37.81 ▲2.54 |
Add New Post /wp-admin/post-new.php | 1,541 ▲7 | 23.26 ▲0.11 | 646.71 ▼55.95 | 50.48 ▼14.10 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.25 ▲0.08 | 96.11 ▼2.74 | 41.89 ▼1.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/userlog/userlog.php:13
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== userlog ===
) - Screenshots: Please add an image for screenshot #1 (Example of displaying the logs on the dashboard, with the new search bar under it.)
userlog/userlog.php Passed 13 tests
"userlog" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
54 characters long description:
Keeps a log of users who logged in from where and when
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 plugin975 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 89 | 47 | 975 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.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
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 50.15KB | 19.39KB | ▼ 61.32% |