Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/wp-auto-backup/Data.php+47
Undefined variable: Base_name
Server metrics [RAM: ▲0.12MB] [CPU: ▼257.28ms] Passed 4 tests
This is a short check of server-side resources used by WordPress Auto Backup
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.22 | 39.74 ▲14.50 |
Dashboard /wp-admin | 3.16 ▲0.11 | 47.25 ▲7.24 |
Posts /wp-admin/edit.php | 3.28 ▲0.17 | 46.51 ▲7.76 |
Add New Post /wp-admin/post-new.php | 5.54 ▲0.11 | 96.33 ▼1,047.38 |
Media Library /wp-admin/upload.php | 3.11 ▲0.10 | 42.39 ▲3.26 |
Server storage [IO: ▲6.49MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 new files
Database: 1 new table, no new options
New tables |
---|
wp_database_autobackup |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress Auto Backup
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,674 ▲69 | 15.78 ▲0.24 | 7.29 ▼4.26 | 48.10 ▼3.34 |
Dashboard /wp-admin | 2,941 ▲88 | 5.91 ▼0.14 | 133.32 ▼3.86 | 123.32 ▲19.47 |
Posts /wp-admin/edit.php | 2,742 ▲39 | 2.69 ▼0.00 | 64.32 ▲4.10 | 92.52 ▼0.82 |
Add New Post /wp-admin/post-new.php | 1,496 ▼357 | 18.59 ▼0.52 | 383.15 ▲9.15 | 106.14 ▼1.97 |
Media Library /wp-admin/upload.php | 1,731 ▼44 | 4.98 ▼0.02 | 127.96 ▼22.25 | 140.58 ▲28.33 |
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
- The plugin did not uninstall gracefully
- > Warning in wp-includes/class-wp-hook.php+303
call_user_func_array() expects parameter 1 to be a valid callback, function 'deactivate_uninstall' not found or invalid function name
Smoke tests 75% 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 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
The following issues need your attention
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-auto-backup/Database_Backup.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-auto-backup/Main.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-auto-backup/Data.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-auto-backup/File.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'dj_store' not found in wp-content/plugins/wp-auto-backup/Admin_Form.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 on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
- Plugin Name: Please specify the plugin name on the first line (
=== wp-auto-backup ===
)
wp-auto-backup/Main.php 85% from 13 tests
"WordPress Auto Backup" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 508 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-auto-backup.php" instead of "Main.php")
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 plugin6,044 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SQL | 1 | 8,233 | 0 | 4,978 |
PHP | 7 | 30 | 15 | 1,011 |
CSS | 1 | 1 | 0 | 55 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 14.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.20MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/Database.png | 0.78KB | 0.96KB | 0.00% |
Inline_Preview_Image.png | 196.11KB | 77.01KB | ▼ 60.73% |
thumbnail.png | 8.53KB | 4.22KB | ▼ 50.57% |