Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/user-page-logs/user_page_logs_setting.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; user_page_logs_setting has a deprecated constructor
Server metrics [RAM: ▼1.77MB] [CPU: ▼56.04ms] Passed 4 tests
Analyzing server-side resources used by User Page Logs
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.23 ▼1.24 | 4.33 ▼36.37 |
Dashboard /wp-admin | 2.25 ▼1.10 | 6.39 ▼54.07 |
Posts /wp-admin/edit.php | 2.25 ▼1.11 | 6.07 ▼40.21 |
Add New Post /wp-admin/post-new.php | 2.25 ▼3.64 | 5.84 ▼93.51 |
Media Library /wp-admin/upload.php | 2.25 ▼0.98 | 6.87 ▼27.93 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_user_page_logs |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
tb_user_page_log_version |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for User Page Logs
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 13.18 ▼1.40 | 1.67 ▼0.09 | 36.96 ▼4.29 |
Dashboard /wp-admin | 2,225 ▲40 | 5.87 ▼0.19 | 113.94 ▲9.34 | 44.91 ▲0.29 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.05 ▲0.03 | 34.81 ▼0.99 | 31.19 ▼3.08 |
Add New Post /wp-admin/post-new.php | 1,548 ▲25 | 23.19 ▼0.06 | 652.83 ▼23.41 | 54.38 ▼22.38 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.19 ▼0.03 | 96.46 ▼10.96 | 40.70 ▼8.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/user-page-logs/user_page_logs_setting.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; user_page_logs_setting has a deprecated constructor
- The uninstall procedure failed, leaving 1 table in the database
- wp_user_page_logs
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- db_upgraded
- tb_user_page_log_version
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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 fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/user-page-logs/user_page_logs.php:175
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-page-logs/user_page_logs_setting.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Contributors: Contributors not specified
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in user-page-logs/assets to your readme.txt
user-page-logs/user_page_logs.php 92% from 13 tests
The primary PHP file in "User Page Logs" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("user-page-logs.php" instead of "user_page_logs.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin857 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 226 | 25 | 628 |
CSS | 1 | 0 | 4 | 229 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
PNG images were not found in this plugin