Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.41ms] Passed 4 tests
This is a short check of server-side resources used by Plugin Auditor
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.54 ▼2.18 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.43 ▼5.18 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 49.99 ▲5.64 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 91.85 ▲2.22 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.21 ▼0.51 |
Plugin Auditor /wp-admin/plugins.php?page=plugin_audit | 3.23 | 37.28 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_plugin_audit |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
pa_plugins |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
pa_active_plugins |
pa_db_version |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Plugin Auditor
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲116 | 13.21 ▼0.98 | 1.56 ▼0.39 | 38.94 ▼5.56 |
Dashboard /wp-admin | 2,254 ▲63 | 5.76 ▼0.14 | 93.96 ▼22.06 | 40.18 ▼5.04 |
Posts /wp-admin/edit.php | 2,140 ▲51 | 2.17 ▼0.01 | 40.68 ▲1.95 | 37.67 ▲4.34 |
Add New Post /wp-admin/post-new.php | 1,587 ▲73 | 18.64 ▲1.11 | 577.32 ▼108.71 | 52.07 ▼2.44 |
Media Library /wp-admin/upload.php | 1,442 ▲57 | 4.21 ▲0.06 | 97.34 ▼16.76 | 46.18 ▼2.37 |
Plugin Auditor /wp-admin/plugins.php?page=plugin_audit | 1,056 | 2.37 | 28.47 | 35.95 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: audit trail, audit, plugin audit, maintenance, security
plugin-auditor/plugin-audit.php 85% from 13 tests
The main file in "Plugin Auditor" v. 2.4.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 154 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("plugin-auditor.php" instead of "plugin-audit.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,480 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 166 | 201 | 795 |
PHP | 2 | 140 | 83 | 513 |
CSS | 2 | 32 | 4 | 141 |
SVG | 1 | 0 | 1 | 31 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 32.50 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 3 | 13.64% |
▷ Public methods | 17 | 77.27% |
▷ Protected methods | 5 | 22.73% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 8.15KB | 4.13KB | ▼ 49.24% |
banner-772x250.png | 19.31KB | 8.47KB | ▼ 56.12% |
assets/icon-256x256.png | 17.68KB | 8.39KB | ▼ 52.52% |