Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼5.57ms] Passed 4 tests
An overview of server-side resources used by CC-Backup
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 46.17 ▲6.16 |
Dashboard /wp-admin | 3.55 ▲0.20 | 48.41 ▼16.08 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 50.84 ▲2.82 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 90.44 ▼11.28 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 39.45 ▲2.28 |
Backup /wp-admin/options-general.php?page=cc-backup | 3.40 | 36.81 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for CC-Backup
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.73 ▲0.42 | 2.01 ▼0.01 | 43.87 ▼0.36 |
Dashboard /wp-admin | 2,206 ▲26 | 5.57 ▼0.11 | 85.59 ▼5.90 | 40.34 ▲0.77 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 1.99 ▼0.01 | 41.96 ▲5.57 | 41.52 ▲6.63 |
Add New Post /wp-admin/post-new.php | 1,435 ▼96 | 22.23 ▲1.16 | 572.02 ▼125.23 | 42.36 ▼14.22 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.17 ▼0.08 | 95.12 ▼10.11 | 40.25 ▼5.93 |
Backup /wp-admin/options-general.php?page=cc-backup | 933 | 2.06 | 28.23 | 29.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Exception: Connection to mysql failed with message: SQLSTATE[HY000] [1045] Access denied for user 'travis'@'localhost' (using password: NO) in wp-content/plugins/cc-backup/vendor/ifsnop/mysqldump-php/src/Ifsnop/Mysqldump/Mysqldump.php:297
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Screenshot #1 (**WordPress General Settings** - Visit 'Settings > Backup', backup & restore dumps.) image required
cc-backup/plugin.php 92% from 13 tests
The entry point to "CC-Backup" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("cc-backup.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin3,437 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 536 | 790 | 2,478 |
SQL | 8 | 79 | 94 | 341 |
Markdown | 1 | 56 | 0 | 232 |
Bourne Shell | 3 | 30 | 4 | 155 |
JSON | 2 | 0 | 0 | 82 |
PO File | 1 | 43 | 66 | 67 |
YAML | 2 | 12 | 8 | 64 |
XML | 1 | 0 | 0 | 18 |
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.37 |
Average class complexity | 12.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 5 | 20.83% |
▷ Concrete classes | 19 | 79.17% |
▷ Final classes | 0 | 0.00% |
Methods | 218 | |
▷ Static methods | 22 | 10.09% |
▷ Public methods | 176 | 80.73% |
▷ Protected methods | 18 | 8.26% |
▷ Private methods | 24 | 11.01% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 45.35KB | 14.81KB | ▼ 67.34% |