Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.36ms] Passed 4 tests
Analyzing server-side resources used by Wp-autosave
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.75 ▲3.56 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.40 ▲1.51 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.18 ▼0.76 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 79.37 ▼4.98 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.86 ▲2.80 |
WP-autosave /wp-admin/options-general.php?page=wp-autosave | 3.26 | 33.85 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Wp-autosave: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲102 | 13.58 ▲0.40 | 8.04 ▲6.38 | 40.46 ▼0.45 |
Dashboard /wp-admin | 2,217 ▲11 | 5.89 ▲1.02 | 94.02 ▼5.60 | 39.81 ▲0.90 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.01 ▲0.01 | 35.75 ▲1.37 | 32.35 ▼2.34 |
Add New Post /wp-admin/post-new.php | 1,532 ▼1 | 18.57 ▼4.53 | 630.26 ▼77.79 | 60.92 ▲2.83 |
Media Library /wp-admin/upload.php | 1,399 ▲14 | 4.16 ▼0.08 | 102.87 ▼10.71 | 46.24 ▼0.67 |
WP-autosave /wp-admin/options-general.php?page=wp-autosave | 877 | 2.03 | 28.34 | 35.19 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-autosave/public/partials/wp-autosave-public-display.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-autosave/wp-autosave.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-autosave/admin/partials/wp-autosave-admin-display.php:17
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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:
- Donate link: Invalid URI ("")
wp-autosave/wp-autosave.php Passed 13 tests
The principal PHP file in "Wp-autosave" v. 1.1.1 is loaded by WordPress automatically on each request
49 characters long description:
Auto-save your post to draft at regular intervals
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin448 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 147 | 558 | 288 |
JavaScript | 3 | 48 | 69 | 160 |
CSS | 2 | 0 | 7 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected