Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/backwp/backwp.php+72
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼55.01ms] Passed 4 tests
A check of server-side resources used by Backwp
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.34 ▼32.57 |
Dashboard /wp-admin | 2.05 ▼1.25 | 6.11 ▼46.24 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.80 ▼43.78 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.32 ▼97.45 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.96 ▼31.91 |
Archives /wp-admin/admin.php?page=backwp-archives | 2.05 | 5.60 |
Backup /wp-admin/admin.php?page=backwp | 2.05 | 6.90 |
Premium Extensions /wp-admin/admin.php?page=backwp-premium-extensions | 2.05 | 5.23 |
Server storage [IO: ▲0.88MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options |
---|
backwp_opts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Backwp
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.31 ▼0.04 | 1.71 ▼0.06 | 44.63 ▲1.18 |
Dashboard /wp-admin | 2,224 ▲44 | 5.51 ▼0.16 | 87.87 ▼7.46 | 38.27 ▼2.22 |
Posts /wp-admin/edit.php | 2,190 ▲93 | 4.81 ▲2.82 | 56.26 ▲19.02 | 33.45 ▼1.69 |
Add New Post /wp-admin/post-new.php | 1,577 ▲49 | 23.33 ▲0.25 | 643.33 ▼53.19 | 36.12 ▼22.76 |
Media Library /wp-admin/upload.php | 1,480 ▲83 | 6.60 ▲2.41 | 108.98 ▲8.04 | 44.69 ▼2.55 |
Archives /wp-admin/admin.php?page=backwp-archives | 1,104 | 4.46 | 41.73 | 51.68 |
Backup /wp-admin/admin.php?page=backwp | 1,037 | 4.58 | 53.85 | 45.57 |
Premium Extensions /wp-admin/admin.php?page=backwp-premium-extensions | 1,016 | 4.73 | 42.83 | 38.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/backwp/backwp.php+72
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- backwp_opts
- widget_theysaidso_widget
Smoke tests 50% 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=backwp-premium-extensions
- > Deprecated in wp-content/plugins/backwp/backwp.php+72
Function create_function() is deprecated
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=backwp-premium-extensions
- > Warning in wp-includes/functions.php+6691
file_get_contents(wp-content/plugins/backwp/index.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=backwp-archives
- > Warning in wp-content/plugins/backwp/includes/backwp_list_table.php+306
opendir(wp-content/uploads/backwp_backups/): failed to open dir: No such file or directory
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/backwp/backwp.php:18
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/backwp/includes/backwp_list_table.php on line 8
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/backwp/includes/backwp_list_table.php on line 8
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/backwp/includes/backwp_list_table.php on line 8
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/backwp/includes/backwp_list_table.php on line 8
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/backwp/includes/backwp_list_table.php on line 8
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/backwp/includes/backwp_list_table.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% 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 need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== backwp ===
) - Screenshots: Please add images for these screenshots: #1 (Backup Selection), #2 (Backup Monitor), #3 (Backup Archives)
backwp/backwp.php Passed 13 tests
The principal PHP file in "Backwp" v. 2.0.2 is loaded by WordPress automatically on each request
47 characters long description:
Backup your wordpress site files and databases.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin3,669 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 1,010 | 2,728 | 3,542 |
CSS | 1 | 8 | 9 | 93 |
JavaScript | 1 | 8 | 5 | 34 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 106.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 491.00 |
Average method complexity | 7.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 1 | 1.30% |
▷ Public methods | 77 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 59 | |
▷ Global constants | 59 | 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
15 PNG files occupy 0.46MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/document-lined-pen.png | 1.04KB | 0.80KB | ▼ 22.89% |
includes/images/backup_sprite.png | 13.58KB | 4.10KB | ▼ 69.83% |
screenshot-2.png | 218.41KB | 86.57KB | ▼ 60.36% |
includes/images/backwp-menu.png | 4.22KB | 1.36KB | ▼ 67.75% |
includes/images/icons32.png | 14.31KB | 7.24KB | ▼ 49.36% |