Benchmarks
Plugin footprint Passed 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.06MB] [CPU: ▼290.19ms] Passed 4 tests
An overview of server-side resources used by WP Activity Log for TablePress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.07 | 54.21 ▲4.64 |
Dashboard /wp-admin | 3.51 ▲0.10 | 36.31 ▲2.22 |
Posts /wp-admin/edit.php | 3.74 ▲0.09 | 40.24 ▲3.35 |
Add New Post /wp-admin/post-new.php | 6.97 ▲0.00 | 95.83 ▼1,164.65 |
Media Library /wp-admin/upload.php | 3.39 ▲0.09 | 24.60 ▼1.67 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WP Activity Log for TablePress: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,810 ▲56 | 16.01 ▲0.31 | 6.78 ▲0.48 | 2.31 ▼0.31 |
Dashboard /wp-admin | 2,910 ▲49 | 6.28 ▲0.12 | 117.89 ▼19.08 | 158.78 ▼7.25 |
Posts /wp-admin/edit.php | 2,686 ▲1 | 3.28 ▲0.04 | 66.60 ▲4.12 | 138.29 ▼5.73 |
Add New Post /wp-admin/post-new.php | 1,682 ▼91 | 16.07 ▼5.80 | 408.71 ▼51.77 | 158.80 ▲2.11 |
Media Library /wp-admin/upload.php | 1,727 ▲32 | 5.58 ▲0.07 | 141.73 ▲3.03 | 185.15 ▼0.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 75% 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 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
The following issues need your attention
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WSAL_AbstractSensor' not found in wp-content/plugins/activity-log-tablepress/wp-security-audit-log/custom-sensors/WSAL_Sensors_TablePress.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/activity-log-tablepress/wsal-tablepress.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/activity-log-tablepress/wp-security-audit-log/custom-alerts.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/activity-log-tablepress/includes/wsal-functions.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: activity logs, activity log for wpforms, wp activity log extension
activity-log-tablepress/wsal-tablepress.php 85% from 13 tests
This is the main PHP file of "WP Activity Log for TablePress" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("activity-log-tablepress.php" instead of "wsal-tablepress.php")
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 detected777 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 144 | 315 | 705 |
JavaScript | 1 | 3 | 2 | 72 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 38.67 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 5.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin