Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/wprecovery/index.php+115
Undefined index: action
Server metrics [RAM: ▼0.93MB] [CPU: ▼32.83ms] Passed 4 tests
A check of server-side resources used by WPRecovery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.04 | 35.94 ▼8.14 |
Dashboard /wp-admin | 3.02 ▼0.29 | 23.63 ▼32.54 |
Posts /wp-admin/edit.php | 3.02 ▼0.34 | 27.81 ▼19.45 |
Add New Post /wp-admin/post-new.php | 3.02 ▼2.87 | 26.64 ▼67.70 |
Media Library /wp-admin/upload.php | 3.02 ▼0.21 | 21.82 ▼11.64 |
Support /wp-admin/admin.php?page=ocrb_support | 3.02 | 23.27 |
WPRecovery /wp-admin/admin.php?page=ocrb_settings | 3.02 | 26.61 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please fix the following
- Illegal file modification detected: 1 file (0.00KB) outside of "wp-content/plugins/wprecovery/" and "wp-content/uploads/"
- (new file) wp-content/wprecovery_backup/.empty
Filesystem: 23 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_ocrb_backup |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WPRecovery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲102 | 13.38 ▼1.01 | 1.93 ▼0.06 | 40.81 ▼1.80 |
Dashboard /wp-admin | 2,234 ▲46 | 5.13 ▼0.84 | 108.89 ▲1.29 | 40.26 ▼4.90 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.45 ▲0.39 | 36.17 ▼0.42 | 31.19 ▼0.85 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 23.67 ▲6.17 | 672.75 ▲5.45 | 48.14 ▼9.06 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.25 ▲0.04 | 99.84 ▲3.07 | 42.09 ▼1.73 |
Support /wp-admin/admin.php?page=ocrb_support | 876 | 1.88 | 28.50 | 28.01 |
WPRecovery /wp-admin/admin.php?page=ocrb_settings | 1,098 | 1.88 | 26.13 | 22.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ocrb_settings
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 50% 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
Please fix the following items
- 18× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wprecovery/rollback.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wprecovery/functions/core.php:334
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wprecovery/index.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wprecovery/settings.php:3
- > PHP Notice
Undefined index: data in wp-content/plugins/wprecovery/rollback.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function prepare() on null in wp-content/plugins/wprecovery/rollback.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wprecovery/functions/interface.php:223
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wprecovery/rollback.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wprecovery/advanced.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wprecovery/support.php:9
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 62 tag instead of maximum 10
- Donate link: Invalid URI ("")
wprecovery/index.php 92% from 13 tests
The primary PHP file in "WPRecovery" version 2.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wprecovery.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin10,531 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 2,190 | 4 | 6,820 |
PHP | 12 | 2,071 | 1,101 | 1,944 |
JavaScript | 1 | 577 | 191 | 1,538 |
SVG | 1 | 0 | 0 | 229 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 113.33 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 219.00 |
Average method complexity | 4.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 100 | |
▷ Static methods | 4 | 4.00% |
▷ Public methods | 89 | 89.00% |
▷ Protected methods | 2 | 2.00% |
▷ Private methods | 9 | 9.00% |
Functions | 42 | |
▷ Named functions | 42 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/profile-icon2.png | 0.66KB | 0.67KB | 0.00% |
images/rating.png | 0.59KB | 0.61KB | 0.00% |
images/support-icon.png | 0.41KB | 0.47KB | 0.00% |