Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/autosave-net/loader.php+333
Undefined index: nsmespace
Server metrics [RAM: ▲4.76MB] [CPU: ▼325.29ms] Passed 4 tests
A check of server-side resources used by AutoSave Net
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.78 ▲5.27 | 27.40 ▼27.00 |
Dashboard /wp-admin | 9.26 ▲5.86 | 32.31 ▼6.96 |
Posts /wp-admin/edit.php | 9.27 ▲5.62 | 32.78 ▼5.87 |
Add New Post /wp-admin/post-new.php | 9.27 ▲2.29 | 29.72 ▼1,261.31 |
Media Library /wp-admin/upload.php | 9.27 ▲5.97 | 33.79 ▲8.64 |
Freemius Debug [v.2.4.1] /wp-admin/admin.php?page=freemius | 9.27 | 30.34 |
WordQuest /wp-admin/admin.php?page=wordquest | 9.27 | 29.40 |
AutoSave Net /wp-admin/admin.php?page=autosave-net | 9.27 | 31.55 |
Server storage [IO: ▲3.58MB] [DB: ▲0.13MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 181 new files
Database: no new tables, 9 new options
New WordPress options |
---|
autosave_net |
fs_debug_mode |
fs_accounts |
fs_active_plugins |
wq_sidebar_options |
fs_gdpr |
fcs_sidebar_options |
autosave_net_first_install |
wq |
Browser metrics Passed 4 tests
A check of browser resources used by AutoSave Net
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,990 ▲246 | 14.23 ▼1.42 | 6.44 ▲0.58 | 3.12 ▲0.96 |
Dashboard /wp-admin | 3,203 ▲345 | 6.67 ▲0.49 | 117.49 ▼14.52 | 213.99 ▲49.65 |
Posts /wp-admin/edit.php | 2,790 ▲102 | 3.17 ▼0.07 | 64.03 ▲1.86 | 138.12 ▼6.01 |
Add New Post /wp-admin/post-new.php | 1,732 ▲15 | 17.56 ▼3.82 | 412.72 ▼22.64 | 207.76 ▲47.97 |
Media Library /wp-admin/upload.php | 1,778 ▲80 | 5.86 ▲0.33 | 124.76 ▼20.57 | 201.34 ▲12.05 |
Freemius Debug [v.2.4.1] /wp-admin/admin.php?page=freemius | 1,505 | 2.53 | 55.15 | 116.67 |
WordQuest /wp-admin/admin.php?page=wordquest | 1,944 | 3.28 | 60.44 | 250.30 |
AutoSave Net /wp-admin/admin.php?page=autosave-net | 1,363 | 2.54 | 56.34 | 157.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.12MB] 50% 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
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/autosave-net/autosave-net.php+373
Use of undefined constant AUTOSAVE_INTERVAL - assumed 'AUTOSAVE_INTERVAL' (this will throw an Error in a future version of PHP)
- Zombie WordPress options detected upon uninstall: 9 options
- fs_debug_mode
- wq
- wq_sidebar_options
- fcs_sidebar_options
- fs_accounts
- fs_active_plugins
- autosave_net
- fs_gdpr
- autosave_net_first_install
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
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=autosave-net
- > Warning in wp-content/plugins/autosave-net/autosave-net.php+373
Use of undefined constant AUTOSAVE_INTERVAL - assumed 'AUTOSAVE_INTERVAL' (this will throw an Error in a future version of PHP)
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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/autosave-net/freemius/templates/ajax-loader.php
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/autosave-net/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/autosave-net/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/autosave-net/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/autosave-net/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/autosave-net/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/autosave-net/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/autosave-net/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function has_action() in wp-content/plugins/autosave-net/wordquest.php:91
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/autosave-net/loader.php:2774
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/autosave-net/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #2, #3 in autosave-net/assets to your readme.txt
autosave-net/autosave-net.php Passed 13 tests
The principal PHP file in "AutoSave Net" v. 1.3.4 is loaded by WordPress automatically on each request
120 characters long description:
Auto-save safety net! Timed Backup of your Post Content while writing, with instant compare and restore content metabox.
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected38,369 lines of code in 128 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 111 | 8,793 | 18,846 | 37,821 |
Markdown | 2 | 108 | 0 | 313 |
JavaScript | 3 | 34 | 59 | 194 |
JSON | 1 | 0 | 0 | 27 |
CSS | 11 | 0 | 0 | 14 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,895)
- Method cyclomatic complexity should be reduced to less than 100 (currently 107)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 95.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,895.00 |
Average method complexity | 4.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 107.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 2 | 4.08% |
▷ Concrete classes | 47 | 95.92% |
▷ Final classes | 0 | 0.00% |
Methods | 1,270 | |
▷ Static methods | 173 | 13.62% |
▷ Public methods | 928 | 73.07% |
▷ Protected methods | 15 | 1.18% |
▷ Private methods | 327 | 25.75% |
Functions | 193 | |
▷ Named functions | 166 | 86.01% |
▷ Anonymous functions | 27 | 13.99% |
Constants | 139 | |
▷ Global constants | 114 | 82.01% |
▷ Class constants | 25 | 17.99% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.21MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wordquest.png | 7.71KB | 3.13KB | ▼ 59.40% |
images/quicksave-icons.png | 13.31KB | 4.12KB | ▼ 69.02% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/autosave-net.png | 133.94KB | 33.93KB | ▼ 74.67% |
images/wordquest-icon.png | 1.24KB | 1.23KB | 0.40% |