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
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼12.95ms] Passed 4 tests
This is a short check of server-side resources used by WordPress Audit
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 46.43 ▲3.31 |
Dashboard /wp-admin | 3.42 ▲0.12 | 36.64 ▼13.87 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 40.40 ▼29.01 |
Add New Post /wp-admin/post-new.php | 5.73 ▼0.16 | 77.80 ▼12.24 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 36.92 ▲4.45 |
WP Audit /wp-admin/options-general.php?page=wp-audit | 3.41 | 35.59 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 59 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress Audit
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲76 | 13.20 ▼1.18 | 1.59 ▼0.23 | 42.85 ▼4.00 |
Dashboard /wp-admin | 2,217 ▲29 | 4.85 ▼1.01 | 99.95 ▼16.01 | 39.05 ▼5.35 |
Posts /wp-admin/edit.php | 2,100 ▲8 | 2.05 ▲0.06 | 39.54 ▼2.24 | 33.72 ▼0.36 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.19 ▲5.10 | 675.01 ▲74.98 | 54.52 ▼1.98 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.20 ▲0.02 | 100.27 ▲4.39 | 42.38 ▲0.05 |
WP Audit /wp-admin/options-general.php?page=wp-audit | 846 | 2.06 | 25.64 | 27.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=wp-audit
- > Warning in wp-content/plugins/wpaudit/index.php+93
filemtime(): stat failed for wp-content/plugins/wpaudit//assets/css/plugin-admin.css
- > GET request to /wp-admin/options-general.php?page=wp-audit
- > Warning in wp-content/plugins/wpaudit/index.php+101
filemtime(): stat failed for wp-content/plugins/wpaudit//assets/js/plugin-admin.js
SRP 50% 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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/wpaudit/vendor/wp-background-processing/classes/wp-background-process.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpaudit/vendor/wp-background-processing/wp-background-processing.php:19
- > 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/options-general.php?page=wp-audit
- > Network (severe)
wp-content/plugins/wpaudit/assets/css/plugin-admin.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=wp-audit
- > Network (severe)
wp-content/plugins/wpaudit/assets/js/plugin-admin.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid URI ("")
- Tags: There are too many tags (16 tag instead of maximum 10)
wpaudit/index.php 85% from 13 tests
Analyzing the main PHP file in "WordPress Audit" version 1.0.4
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wpaudit.php" instead of "index.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected3,329 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 534 | 853 | 2,404 |
JavaScript | 26 | 29 | 281 | 519 |
Bourne Shell | 1 | 28 | 27 | 142 |
JSON | 5 | 0 | 0 | 135 |
Markdown | 2 | 54 | 0 | 106 |
YAML | 1 | 0 | 2 | 23 |
PHP code Passed 2 tests
This is a very shot review of 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.30 |
Average class complexity | 13.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 2 | 8.33% |
▷ Concrete classes | 22 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 115 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 95 | 82.61% |
▷ Protected methods | 20 | 17.39% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 30 | 100.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin