Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.83ms] Passed 4 tests
Server-side resources used by User Last Visit
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.02 ▲6.88 |
Dashboard /wp-admin | 3.38 ▲0.08 | 46.95 ▼1.52 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 47.84 ▼7.20 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 98.26 ▼13.02 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.91 ▲2.44 |
User Last Visit /wp-admin/options-general.php?page=ulv_admin_page | 3.29 | 32.81 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by User Last Visit
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.34 ▼0.24 | 1.89 ▼0.08 | 44.28 ▲1.81 |
Dashboard /wp-admin | 2,202 ▲25 | 5.63 ▼0.03 | 83.90 ▼3.73 | 35.58 ▼6.84 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▼0.01 | 35.08 ▼9.41 | 37.16 ▲0.47 |
Add New Post /wp-admin/post-new.php | 1,552 ▲15 | 18.35 ▲0.11 | 628.36 ▲5.87 | 71.77 ▲5.78 |
Media Library /wp-admin/upload.php | 1,398 ▲1 | 4.21 ▲0.01 | 97.08 ▲0.07 | 40.92 ▼5.63 |
User Last Visit /wp-admin/options-general.php?page=ulv_admin_page | 1,005 | 2.01 | 46.66 | 27.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/user-last-visit/includes/functions.php:92
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-last-visit/includes/ulv-ajax-cb.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/user-last-visit/views/admin-page.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
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
5 plugin tags: multisite, visit, logged in, record, user
user-last-visit/main.php 85% from 13 tests
Analyzing the main PHP file in "User Last Visit" version 1.0
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("user-last-visit.php" instead of "main.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin869 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 47 | 199 | 518 |
PO File | 2 | 86 | 88 | 226 |
JavaScript | 1 | 14 | 15 | 85 |
CSS | 1 | 10 | 7 | 40 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 4 | 16.67% |
▷ Public methods | 19 | 79.17% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.83% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin