Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼10.36ms] Passed 4 tests
Analyzing server-side resources used by WP Simple Backup
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 35.56 ▼1.43 |
Dashboard /wp-admin | 3.38 ▲0.03 | 46.73 ▼11.52 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 42.61 ▼7.23 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 79.16 ▼19.29 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 35.01 ▼3.38 |
Settings /wp-admin/admin.php?page=wpsimplebackup/views/settings/setting.php | 3.27 | 33.41 |
WP Simple Backup /wp-admin/admin.php?page=wpsimplebackup/views/settings/listing.php | 3.29 | 30.35 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- There were 2 files (0.14KB) illegally modified outside of "wp-content/plugins/wpsimplebackup/" and "wp-content/uploads/"
- (new file) wp-content/wpsimplebackup/backup/database/.htaccess
- (new file) wp-content/wpsimplebackup/backup/code/.htaccess
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Simple Backup
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.28 ▼1.10 | 4.56 ▲2.95 | 44.00 ▲3.51 |
Dashboard /wp-admin | 2,233 ▲45 | 4.85 ▼1.01 | 98.66 ▼2.50 | 44.23 ▼1.02 |
Posts /wp-admin/edit.php | 2,119 ▲33 | 2.02 ▲0.03 | 37.76 ▼2.96 | 33.67 ▼1.23 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 17.76 ▼5.64 | 662.60 ▼2.64 | 58.70 ▲1.58 |
Media Library /wp-admin/upload.php | 1,418 ▲36 | 4.25 ▲0.09 | 96.83 ▼2.03 | 43.84 ▼0.21 |
Settings /wp-admin/admin.php?page=wpsimplebackup/views/settings/setting.php | 929 | 2.13 | 34.29 | 62.51 |
WP Simple Backup /wp-admin/admin.php?page=wpsimplebackup/views/settings/listing.php | 1,133 | 2.48 | 47.85 | 40.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test
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 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Please a description for screenshot #2 in wpsimplebackup/assets to your readme.txt
wpsimplebackup/WpSimpleBackup.php 85% from 13 tests
The entry point to "WP Simple Backup" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 141 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("wpsimplebackup.php" instead of "WpSimpleBackup.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 plugin1,127 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 178 | 397 | 856 |
JavaScript | 3 | 11 | 14 | 217 |
CSS | 4 | 9 | 8 | 47 |
JSON | 1 | 1 | 0 | 7 |
PHP code Passed 2 tests
Analyzing 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.42 |
Average class complexity | 10.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 21 | 38.89% |
▷ Public methods | 43 | 79.63% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 20.37% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
assets/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
assets/images/icon.png | 0.47KB | 0.47KB | 0.41% |
assets/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |