Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲6.15MB] [CPU: ▲39.41ms] 50% from 4 tests
An overview of server-side resources used by WP Activity Log
The following require your attention
- RAM: Total memory usage must be kept under 10MB (currently 11.53MB on /wp-admin/admin.php?page=wsal-auditlog)
- Extra RAM: The extra memory usage should kept under 5MB (currently 6.15MB on /wp-admin/index.php?page=wsal-setup)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.61 ▲5.14 | 69.94 ▲28.82 |
Dashboard /wp-admin | 10.27 ▲6.92 | 99.53 ▲35.15 |
Posts /wp-admin/edit.php | 9.89 ▲6.53 | 101.16 ▲47.08 |
Add New Post /wp-admin/post-new.php | 12.37 ▲6.47 | 136.86 ▲46.59 |
Media Library /wp-admin/upload.php | 9.70 ▲6.46 | 86.36 ▲51.80 |
Search Filters ✛ /wp-admin/admin.php?page=wsal-search | 9.55 | 75.63 |
Reports ✛ /wp-admin/admin.php?page=wsal-reports | 9.57 | 129.89 |
Enable/Disable Events /wp-admin/admin.php?page=wsal-togglealerts | 11.10 | 81.70 |
Settings /wp-admin/admin.php?page=wsal-settings | 9.55 | 81.43 |
Log viewer /wp-admin/admin.php?page=wsal-auditlog | 11.53 | 103.29 |
Help & Contact Us /wp-admin/admin.php?page=wsal-help | 9.54 | 73.95 |
Upgrade to Premium /wp-admin/admin.php?page=upgrade | 9.60 | 85.83 |
Integrations ✛ /wp-admin/admin.php?page=wsal-externaldb | 9.55 | 70.58 |
Email & SMS Notifications ✛ /wp-admin/admin.php?page=wsal-emailnotifications | 9.55 | 84.61 |
/wp-admin/index.php?page=wsal-setup | 9.46 | 66.13 |
Server storage [IO: ▲6.88MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 335 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_wsal_occurrences |
wp_wsal_metadata |
New WordPress options |
---|
wsal_setup-modal-dismissed |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP Activity Log
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲182 | 14.36 ▼0.41 | 1.61 ▼0.22 | 37.70 ▼5.67 |
Dashboard /wp-admin | 2,334 ▲154 | 5.69 ▲0.04 | 96.71 ▲0.97 | 45.60 ▼0.85 |
Posts /wp-admin/edit.php | 2,203 ▲103 | 2.07 ▲0.11 | 42.87 ▲6.46 | 39.79 ▲6.54 |
Add New Post /wp-admin/post-new.php | 1,583 ▲57 | 23.46 ▲0.50 | 639.15 ▼149.52 | 55.57 ▲1.59 |
Media Library /wp-admin/upload.php | 1,506 ▲103 | 4.24 ▲0.04 | 97.82 ▲0.34 | 44.46 ▲1.13 |
Search Filters ✛ /wp-admin/admin.php?page=wsal-search | 1,030 | 2.20 | 31.93 | 47.18 |
Reports ✛ /wp-admin/admin.php?page=wsal-reports | 1,048 | 2.20 | 28.26 | 34.47 |
Enable/Disable Events /wp-admin/admin.php?page=wsal-togglealerts | 3,788 | 1.64 | 97.79 | 65.26 |
Settings /wp-admin/admin.php?page=wsal-settings | 1,386 | 2.09 | 35.61 | 38.68 |
Log viewer /wp-admin/admin.php?page=wsal-auditlog | 1,638 | 2.26 | 47.07 | 47.08 |
Help & Contact Us /wp-admin/admin.php?page=wsal-help | 1,474 | 12.89 | 280.85 | 65.84 |
Upgrade to Premium /wp-admin/admin.php?page=upgrade | 28 | 0.42 | 0.09 | 3.44 |
Integrations ✛ /wp-admin/admin.php?page=wsal-externaldb | 1,042 | 2.30 | 33.42 | 40.03 |
Email & SMS Notifications ✛ /wp-admin/admin.php?page=wsal-emailnotifications | 1,077 | 2.18 | 34.22 | 38.97 |
/wp-admin/index.php?page=wsal-setup | 173 | 1.45 | 14.43 | 9.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie tables were found after uninstall: 2 tables
- wp_wsal_metadata
- wp_wsal_occurrences
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- wsal_setup-modal-dismissed
- db_upgraded
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wsal-externaldb
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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
Almost there! Just fix the following items
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WSAL\\Multisite\etworkWide\\AbstractTracker' not found in wp-content/plugins/wp-security-audit-log/classes/Multisite/NetworkWide/CPTsTracker.php:18
- > PHP Fatal error
Uncaught Error: Interface 'WSAL\\Multisite\etworkWide\\TrackerInterface' not found in wp-content/plugins/wp-security-audit-log/classes/Multisite/NetworkWide/AbstractTracker.php:30
- > PHP Fatal error
Uncaught Error: Class 'WSAL_Vendor\\WP_Async_Request' not found in wp-content/plugins/wp-security-audit-log/third-party/vendor/classes/wp-background-process.php:16
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-security-audit-log/classes/ListAdminEvents/class-list-events.php on line 34
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/template.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-security-audit-log/classes/ListAdminEvents/class-list-events.php on line 34
- > PHP Fatal error
Uncaught Error: Call to undefined function WSAL_Vendor\\plugin_dir_path() in wp-content/plugins/wp-security-audit-log/third-party/vendor/wp-background-processing.php:21
- > PHP Warning
require_once(ABSPATHwp-admin/includes/template.php): failed to open stream: No such file or directory in wp-content/plugins/wp-security-audit-log/classes/ListAdminEvents/class-list-events.php on line 34
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=wsal-search
- > Network (severe)
wp-content/plugins/wp-security-audit-log/img/wsal-search.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=wsal-reports
- > Network (severe)
wp-content/plugins/wp-security-audit-log/img/wsal-reports.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=upgrade
- > Network (severe)
wp-admin/admin.php?page=upgrade - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/admin.php?page=wsal-externaldb
- > Network (severe)
wp-content/plugins/wp-security-audit-log/img/wsal-externaldb.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=wsal-emailnotifications
- > Network (severe)
wp-content/plugins/wp-security-audit-log/img/wsal-emailnotifications.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: user tracking, log, audit trail, security audit log, website changes...
wp-security-audit-log/wp-security-audit-log.php 92% from 13 tests
The entry point to "WP Activity Log" version 4.6.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 280 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected68,691 lines of code in 253 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 133 | 6,414 | 18,846 | 40,313 |
PO File | 7 | 5,656 | 6,604 | 16,013 |
JavaScript | 81 | 1,540 | 1,852 | 7,337 |
CSS | 20 | 778 | 453 | 3,914 |
SVG | 10 | 0 | 10 | 786 |
Sass | 1 | 25 | 4 | 175 |
JSON | 1 | 0 | 0 | 153 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 186)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 53.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 995.00 |
Average method complexity | 4.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 186.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 120 | |
▷ Abstract classes | 7 | 5.83% |
▷ Concrete classes | 113 | 94.17% |
▷ Final classes | 3 | 2.65% |
Methods | 1,578 | |
▷ Static methods | 1,016 | 64.39% |
▷ Public methods | 1,262 | 79.97% |
▷ Protected methods | 63 | 3.99% |
▷ Private methods | 253 | 16.03% |
Functions | 68 | |
▷ Named functions | 33 | 48.53% |
▷ Anonymous functions | 35 | 51.47% |
Constants | 45 | |
▷ Global constants | 25 | 55.56% |
▷ Class constants | 20 | 44.44% |
▷ Public constants | 20 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
45 PNG files occupy 2.09MB with 1.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/search/search_2.png | 233.38KB | 70.13KB | ▼ 69.95% |
img/users-sessions-management/user_sessions_1.png | 87.46KB | 46.99KB | ▼ 46.27% |
js/freemius-pricing/cb5fc4f6ec7ada72e986f6e7dde365bf.png | 22.92KB | 3.42KB | ▼ 85.08% |
img/mails/daily-notification/box-shadow-up.png | 1.18KB | 0.50KB | ▼ 57.79% |
img/external-db/db_integrations_2.png | 23.89KB | 14.33KB | ▼ 40.01% |