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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼5.61ms] Passed 4 tests
Server-side resources used by WP Activity Log for WPForms
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 44.80 ▼1.79 |
Dashboard /wp-admin | 3.41 ▲0.10 | 52.02 ▼7.41 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 52.82 ▼2.82 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 97.93 ▼10.40 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 43.42 ▲6.89 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Activity Log for WPForms
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 14.77 ▲0.66 | 1.76 ▼0.18 | 41.25 ▼1.83 |
Dashboard /wp-admin | 2,217 ▲40 | 5.60 ▼0.05 | 99.10 ▲4.01 | 40.90 ▼0.29 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.06 ▲0.09 | 41.04 ▲2.05 | 36.82 ▲2.06 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 23.34 ▲0.23 | 689.52 ▼23.31 | 62.87 ▲5.38 |
Media Library /wp-admin/upload.php | 1,422 ▲25 | 4.24 ▲0.04 | 112.78 ▼2.79 | 49.20 ▲1.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
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
Please take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WSAL_AbstractSensor' not found in wp-content/plugins/wp-security-audit-log-add-on-for-wpforms/wp-security-audit-log/custom-sensors/WPFormsSensor.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-security-audit-log-add-on-for-wpforms/wp-security-audit-log/custom-alerts.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-security-audit-log-add-on-for-wpforms/wsal-wpforms.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: A description for screenshot #2 is missing in wp-security-audit-log-add-on-for-wpforms/assets to your readme.txt
wp-security-audit-log-add-on-for-wpforms/wsal-wpforms.php 85% from 13 tests
The primary PHP file in "WP Activity Log for WPForms" version 1.2.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-security-audit-log-add-on-for-wpforms.php" instead of "wsal-wpforms.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,771 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 382 | 762 | 2,699 |
JavaScript | 1 | 3 | 2 | 72 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 119)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 87.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 189.00 |
Average method complexity | 7.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 119.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 23 | 36.51% |
▷ Public methods | 49 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 22.22% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin