Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-includes/functions.php+6570
fopen(wp-content/plugins/mainwp/mainwp.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.02MB] [CPU: ▼307.85ms] Passed 4 tests
Server-side resources used by Activity Log For MainWP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 80.11 ▼6.89 |
Dashboard /wp-admin | 3.41 ▲0.00 | 42.18 ▲1.36 |
Posts /wp-admin/edit.php | 3.64 ▼0.00 | 47.28 ▼11.15 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 115.14 ▼1,213.29 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 36.60 ▼0.07 |
Server storage [IO: ▲1.67MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 155 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Activity Log For MainWP: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,821 ▲63 | 15.76 ▲0.28 | 13.01 ▼6.72 | 3.60 ▼0.11 |
Dashboard /wp-admin | 2,918 ▲42 | 6.40 ▲0.03 | 189.38 ▼59.40 | 207.13 ▲3.33 |
Posts /wp-admin/edit.php | 2,685 ▼1 | 3.42 ▼0.01 | 87.25 ▼19.02 | 210.60 ▲22.56 |
Add New Post /wp-admin/post-new.php | 1,635 ▼33 | 16.11 ▼4.88 | 667.42 ▲39.33 | 202.45 ▼37.94 |
Media Library /wp-admin/upload.php | 1,695 ▼2 | 5.72 ▲0.10 | 190.36 ▲6.59 | 251.22 ▼3.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/activity-log-mainwp/extensions/reports/download.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Background_Process' not found in wp-content/plugins/activity-log-mainwp/includes/processes/class-enforce-settings-background-process.php:7
- > [MWPAL Reporting Plugin] Requesting download.php with a missing or invalid nonce [code
1000]
- > PHP Fatal error
Uncaught Error: Class 'WSAL\\MainWPExtension\\Views\\AuditLogView' not found in wp-content/plugins/activity-log-mainwp/includes/views/class-auditloglistview.php:20
- > [MWPAL Reporting Plugin] Requesting download.php without the "f" parameter [code
2000]
- > PHP Fatal error
Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/activity-log-mainwp/vendor/deliciousbrains/wp-background-processing/classes/wp-background-process.php:14
- > PHP Fatal error
Uncaught Error: Class 'WSAL\\MainWPExtension\\Enforce_Settings_Background_Process' not found in wp-content/plugins/activity-log-mainwp/includes/processes/class-enforce-settings-update-process.php:5
- > PHP Fatal error
Uncaught Error: Class 'WSAL\\MainWPExtension\\Enforce_Settings_Background_Process' not found in wp-content/plugins/activity-log-mainwp/includes/processes/class-enforce-settings-removal-process.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/activity-log-mainwp/vendor/deliciousbrains/wp-background-processing/wp-background-processing.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Screenshot #4 (Once you install the plugin you are greeted with a one-time setup wizard.) image required
- Tags: You are using too many tags: 12 tag instead of maximum 10
activity-log-mainwp/activity-log-mainwp.php 92% from 13 tests
"Activity Log For MainWP" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin26,372 lines of code in 137 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 103 | 3,381 | 7,414 | 18,174 |
JavaScript | 15 | 1,172 | 1,014 | 5,675 |
CSS | 8 | 341 | 68 | 1,637 |
Sass | 2 | 103 | 9 | 594 |
Markdown | 1 | 60 | 0 | 112 |
SVG | 5 | 0 | 5 | 110 |
JSON | 3 | 0 | 0 | 70 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 26.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 420.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 88 | |
▷ Abstract classes | 14 | 15.91% |
▷ Concrete classes | 74 | 84.09% |
▷ Final classes | 3 | 4.05% |
Methods | 816 | |
▷ Static methods | 59 | 7.23% |
▷ Public methods | 661 | 81.00% |
▷ Protected methods | 93 | 11.40% |
▷ Private methods | 62 | 7.60% |
Functions | 37 | |
▷ Named functions | 28 | 75.68% |
▷ Anonymous functions | 9 | 24.32% |
Constants | 33 | |
▷ Global constants | 26 | 78.79% |
▷ Class constants | 7 | 21.21% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/js/dist/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
assets/js/dist/select2/select2.png | 0.60KB | 0.99KB | 0.00% |
assets/img/wsal-logo-full@2x.png | 34.26KB | 10.92KB | ▼ 68.14% |
assets/img/wsal-logo-full.png | 15.85KB | 5.82KB | ▼ 63.31% |
assets/img/wsal-logo@2x.png | 10.54KB | 4.05KB | ▼ 61.54% |