Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼4.77ms] Passed 4 tests
This is a short check of server-side resources used by WP Audit
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 38.30 ▲2.96 |
Dashboard /wp-admin | 3.42 ▲0.11 | 47.03 ▼1.95 |
Posts /wp-admin/edit.php | 3.54 ▲0.17 | 48.16 ▼3.78 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 81.62 ▼13.97 |
Media Library /wp-admin/upload.php | 3.35 ▲0.11 | 35.23 ▲0.62 |
WP Audit /wp-admin/index.php?page=wp-audit | 3.32 | 31.62 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Audit
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.54 ▲0.19 | 1.65 ▲0.06 | 39.34 ▲0.22 |
Dashboard /wp-admin | 2,196 ▲18 | 5.55 ▼0.08 | 84.88 ▼15.98 | 40.15 ▼4.75 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.94 ▼0.09 | 33.72 ▼8.08 | 35.80 ▼1.18 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.10 ▲0.03 | 666.46 ▲68.18 | 56.28 ▼1.37 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.29 ▼0.01 | 94.34 ▼5.54 | 45.02 ▼1.07 |
WP Audit /wp-admin/index.php?page=wp-audit | 889 | 1.94 | 30.32 | 32.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/index.php?page=wp-audit
- > Notice in wp-content/plugins/wp-audit/wp-audit.php+515
Undefined index: HTTPS
- 7 occurences, only the last one shown
- > GET request to /wp-admin/index.php?page=wp-audit
- > Deprecated in wp-content/plugins/wp-audit/wp-audit.php+748
Non-static method WPAudit_Helpers::formatBytes() should not be called statically
- > GET request to /wp-admin/index.php?page=wp-audit
- > Deprecated in wp-content/plugins/wp-audit/wp-audit.php+520
Non-static method WPAudit_Helpers::get_php_curl() should not be called statically
- > GET request to /wp-admin/index.php?page=wp-audit
- > Deprecated in wp-content/plugins/wp-audit/wp-audit.php+521
Non-static method WPAudit_Helpers::get_php_loaded_extensions() should not be called statically
- 5 occurences, only the last one shown
- > GET request to /wp-admin/index.php?page=wp-audit
- > Deprecated in wp-content/plugins/wp-audit/wp-audit.php+731
Non-static method WPAudit_Helpers::folderSize() should not be called statically
- 3 occurences, only the last one shown
- > GET request to /wp-admin/index.php?page=wp-audit
- > Deprecated in wp-content/plugins/wp-audit/wp-audit.php+538
Non-static method WPAudit_Helpers::folderInfo() should not be called statically
- > GET request to /wp-admin/index.php?page=wp-audit
- > Notice in wp-content/plugins/wp-audit/wp-audit.php+477
Undefined property: mysqli::$stat
- > GET request to /wp-admin/index.php?page=wp-audit
- > Notice in wp-content/plugins/wp-audit/wp-audit.php+480
Undefined offset: 1
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 8× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-audit/admin/tabs/privacy.php
- > /wp-content/plugins/wp-audit/admin/tabs/plugins.php
- > /wp-content/plugins/wp-audit/admin/tabs/environment.php
- > /wp-content/plugins/wp-audit/admin/tabs/content.php
- > /wp-content/plugins/wp-audit/admin/tabs/wordpress.php
- > /wp-content/plugins/wp-audit/admin/tabs/tools.php
- > /wp-content/plugins/wp-audit/admin/tabs/performance.php
- > /wp-content/plugins/wp-audit/admin/tabs/database.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-audit/wp-audit.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/wp-audit/admin/tabs/errors.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-audit/admin/footer.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-audit/admin/tab-environment.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/wp-audit/admin/header.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/index.php?page=wp-audit
- > Network (severe)
wp-content/plugins/wp-audit/admin/js/slimtable.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== wp-audit ===
)
wp-audit/wp-audit.php 92% from 13 tests
The main PHP file in "WP Audit" ver. 0.5.7 adds more information about the plugin and also serves as the entry point for this plugin
It is important to 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,495 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 223 | 80 | 1,064 |
CSS | 1 | 61 | 15 | 397 |
JavaScript | 2 | 9 | 21 | 34 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 17.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 43 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin