Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-includes/functions.php+6691
file_get_contents(wp-content/plugins/mainwp/mainwp.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.13ms] Passed 4 tests
A check of server-side resources used by Activity Log For MainWP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.92 ▼3.00 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.33 ▼0.08 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.84 ▼1.54 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.13 ▼7.90 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.65 ▲3.14 |
Server storage [IO: ▲1.63MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 148 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Activity Log For MainWP: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.25 ▼1.37 | 1.83 ▲0.00 | 40.96 ▼6.22 |
Dashboard /wp-admin | 2,203 ▲11 | 6.00 ▲1.09 | 97.51 ▼9.24 | 39.85 ▼3.18 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.00 ▼0.04 | 35.34 ▼5.81 | 33.35 ▼3.99 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.71 ▼5.29 | 666.74 ▼33.20 | 60.02 ▲5.91 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.22 ▼0.01 | 101.28 ▼0.44 | 46.08 ▲1.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
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 no errors were found, this is by no means an exhaustive test
SRP 0% 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 fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/activity-log-mainwp/extensions/reports/download.php
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > 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-removal-process.php:5
- > 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
- > 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\\Views\\AuditLogView' not found in wp-content/plugins/activity-log-mainwp/includes/views/class-auditloglistview.php:20
- > [MWPAL Reporting Plugin] Requesting download.php with a missing or invalid nonce [code
1000]
- > 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
- > [MWPAL Reporting Plugin] Requesting download.php without the "f" parameter [code
2000]
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Add an image for screenshot #4 (Once you install the plugin you are greeted with a one-time setup wizard.)
activity-log-mainwp/activity-log-mainwp.php 92% from 13 tests
The main file in "Activity Log For MainWP" v. 2.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected25,006 lines of code in 130 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 103 | 3,384 | 7,440 | 18,229 |
JavaScript | 10 | 1,031 | 848 | 4,853 |
CSS | 8 | 341 | 68 | 1,637 |
Markdown | 1 | 60 | 0 | 112 |
SVG | 5 | 0 | 5 | 110 |
JSON | 3 | 0 | 0 | 65 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 26.10 |
▷ 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 | 817 | |
▷ Static methods | 59 | 7.22% |
▷ Public methods | 664 | 81.27% |
▷ Protected methods | 93 | 11.38% |
▷ Private methods | 60 | 7.34% |
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/img/wsal-logo-full@2x.png | 34.26KB | 10.92KB | ▼ 68.14% |
assets/js/dist/select2/select2.png | 0.60KB | 0.99KB | 0.00% |
assets/img/wsal-logo@2x.png | 10.54KB | 4.05KB | ▼ 61.54% |
assets/img/wsal-logo-full.png | 15.85KB | 5.82KB | ▼ 63.31% |
assets/js/dist/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |