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
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼6.13ms] Passed 4 tests
This is a short check of server-side resources used by WP Auto Updates
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 39.00 ▲0.88 |
Dashboard /wp-admin | 3.42 ▲0.07 | 48.36 ▼16.84 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 51.33 ▲1.83 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 94.83 ▼10.01 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.27 ▲1.46 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
wpeu_enable_auto_updates |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Auto Updates
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲46 | 14.31 ▼0.06 | 1.82 ▼0.38 | 42.85 ▲3.36 |
Dashboard /wp-admin | 2,210 ▲30 | 5.64 ▼0.06 | 95.12 ▲3.38 | 42.03 ▼6.74 |
Posts /wp-admin/edit.php | 2,118 ▲21 | 2.05 ▲0.04 | 39.47 ▲1.64 | 35.88 ▼0.96 |
Add New Post /wp-admin/post-new.php | 1,564 ▲19 | 18.49 ▼4.94 | 623.81 ▼53.76 | 63.14 ▲8.56 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.23 ▲0.02 | 103.55 ▼10.80 | 43.38 ▼4.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-auto-updates/src/Admin/pages/enable-wp-auto-updates/update-logs.admin.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-auto-updates/src/Admin/pages/enable-wp-auto-updates/enable-wp-auto-updates.admin.php:8
- > PHP Fatal error
Uncaught Error: Class 'WPAutoUpdates\\WPAdminPage\\AdminPage' not found in wp-content/plugins/wp-auto-updates/src/Admin/AutoUpdatesAdmin.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/wp-auto-updates/src/WPAdminPage/pages/header.admin.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-auto-updates/src/WPAdminPage/pages/footer.admin.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (Auto Updates Settings) image required
wp-auto-updates/wp-auto-update.php 69% from 13 tests
The principal PHP file in "WP Auto Updates" v. 0.5.4 is loaded by WordPress automatically on each request
You should first fix the following items:
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
- Main file name: Name the main plugin file the same as the plugin slug ("wp-auto-updates.php" instead of "wp-auto-update.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.7" instead of "3.4")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,453 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 218 | 714 | 968 |
Markdown | 2 | 78 | 0 | 350 |
CSS | 1 | 15 | 2 | 129 |
HTML | 5 | 0 | 0 | 5 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 12.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 3 | 50.00% |
Methods | 72 | |
▷ Static methods | 12 | 16.67% |
▷ Public methods | 69 | 95.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.17% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin