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.51MB] [CPU: ▼5.47ms] Passed 4 tests
An overview of server-side resources used by Error Log Monitor, Activity Logs, User Activity Tracking from Logtivity
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.52 | 43.10 ▲4.89 |
Dashboard /wp-admin | 3.83 ▲0.48 | 51.32 ▼9.12 |
Posts /wp-admin/edit.php | 3.88 ▲0.52 | 45.36 ▼4.97 |
Add New Post /wp-admin/post-new.php | 6.43 ▲0.54 | 84.91 ▼11.09 |
Media Library /wp-admin/upload.php | 3.75 ▲0.52 | 39.98 ▲3.31 |
Logtivity /wp-admin/admin.php?page=logtivity | 3.77 | 40.32 |
Settings /wp-admin/admin.php?page=logtivity-settings | 3.79 | 38.26 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
logtivity_last_settings_check_in_at |
Browser metrics Passed 4 tests
Checking browser requirements for Error Log Monitor, Activity Logs, User Activity Tracking from Logtivity
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲194 | 14.32 ▼0.09 | 1.59 ▲0.07 | 42.47 ▲2.42 |
Dashboard /wp-admin | 2,222 ▲48 | 5.51 ▼0.11 | 85.78 ▼6.11 | 38.59 ▼6.95 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.02 ▲0.01 | 36.54 ▼1.67 | 29.84 ▼6.37 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.33 ▲0.62 | 684.29 ▲3.53 | 49.74 ▼1.06 |
Media Library /wp-admin/upload.php | 1,427 ▲36 | 4.24 ▲0.05 | 102.34 ▼1.33 | 41.45 ▼2.97 |
Logtivity /wp-admin/admin.php?page=logtivity | 1,078 | 1.83 | 32.92 | 25.82 |
Settings /wp-admin/admin.php?page=logtivity-settings | 1,157 | 2.02 | 27.84 | 27.18 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- logtivity_last_settings_check_in_at
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/logtivity/views/_logs-loop.php
- 37× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/logtivity/views/site-url-changed-notice.php:3
- > PHP Fatal error
Uncaught Error: Class 'Logtivity_Api' not found in wp-content/plugins/logtivity/Services/Logtivity_Logger.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/logtivity/Logs/Code_Snippets/Logtivity_Code_Snippets.php:7
- > PHP Fatal error
Uncaught Error: Class 'Logtivity_Abstract_Easy_Digital_Downloads' not found in wp-content/plugins/logtivity/Logs/Easy_Digital_Downloads/Logtivity_Easy_Digital_Downloads_Software_Licensing.php:3
- > PHP Fatal error
Uncaught Error: Class 'Logtivity_Abstract_Logger' not found in wp-content/plugins/logtivity/Logs/Memberpress/Logtivity_Memberpress.php:3
- > PHP Notice
Undefined variable: logs in wp-content/plugins/logtivity/views/_logs-loop.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/logtivity/views/activation.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function logtivity_view() in wp-content/plugins/logtivity/views/log-index.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/logtivity/Services/Logtivity_Check_For_Disabled_Individual_Logs.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function logtivity_view() in wp-content/plugins/logtivity/views/settings.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: activity logs, site activities, event monitoring, log data, activity log...
logtivity/logtivity.php Passed 13 tests
This is the main PHP file of "Error Log Monitor, Activity Logs, User Activity Tracking from Logtivity" version 3.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
60 characters long description:
Dedicated Event Monitoring for WordPress using Logtivity.io.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected4,495 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 46 | 916 | 479 | 3,928 |
Markdown | 1 | 202 | 0 | 317 |
JavaScript | 1 | 70 | 5 | 113 |
CSS | 1 | 0 | 0 | 87 |
SVG | 1 | 0 | 0 | 50 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 14.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 34 | |
▷ Abstract classes | 2 | 5.88% |
▷ Concrete classes | 32 | 94.12% |
▷ Final classes | 0 | 0.00% |
Methods | 265 | |
▷ Static methods | 4 | 1.51% |
▷ Public methods | 227 | 85.66% |
▷ Protected methods | 15 | 5.66% |
▷ Private methods | 23 | 8.68% |
Functions | 11 | |
▷ Named functions | 8 | 72.73% |
▷ Anonymous functions | 3 | 27.27% |
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
No PNG files were detected