Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.94MB] [CPU: ▲4.60ms] Passed 4 tests
A check of server-side resources used by QNAP NAS Backup
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.43 ▲1.97 | 44.87 ▲7.25 |
Dashboard /wp-admin | 5.28 ▲1.97 | 52.94 ▼2.32 |
Posts /wp-admin/edit.php | 5.33 ▲1.97 | 53.84 ▲7.90 |
Add New Post /wp-admin/post-new.php | 7.82 ▲1.93 | 88.41 ▲5.58 |
Media Library /wp-admin/upload.php | 5.14 ▲1.91 | 49.93 ▲16.12 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- Illegal file modification detected: 4 files (0.48KB) outside of "wp-content/plugins/qnap-nas-backup/" and "wp-content/uploads/"
- (new file) wp-content/qnap-backups/web.config
- (new file) wp-content/qnap-backups/index.html
- (new file) wp-content/qnap-backups/.htaccess
- (new file) wp-content/qnap-backups/index.php
Filesystem: 117 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
qnap_secret_key |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for QNAP NAS Backup
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.17 ▼0.11 | 1.63 ▲0.03 | 37.11 ▼4.61 |
Dashboard /wp-admin | 2,213 ▲33 | 5.64 ▲0.02 | 83.77 ▼0.48 | 38.86 ▼5.57 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.00 ▲0.01 | 34.89 ▼2.58 | 32.92 ▼3.60 |
Add New Post /wp-admin/post-new.php | 1,541 ▲10 | 23.09 ▼0.15 | 685.06 ▲83.31 | 63.56 ▲17.42 |
Media Library /wp-admin/upload.php | 1,412 ▲9 | 4.17 ▲0.00 | 93.35 ▼7.82 | 40.69 ▼4.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following items
- 86× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/qnap-nas-backup/lib/view/main/backups-htaccess-notice.php
- > /wp-content/plugins/qnap-nas-backup/lib/controller/class-qnap-backups-controller.php
- > /wp-content/plugins/qnap-nas-backup/lib/view/main/storage-index-html-notice.php
- > /wp-content/plugins/qnap-nas-backup/lib/model/import/class-qnap-import-compatibility.php
- > /wp-content/plugins/qnap-nas-backup/lib/model/class-qnap-notification.php
- > /wp-content/plugins/qnap-nas-backup/lib/model/class-qnap-message.php
- > /wp-content/plugins/qnap-nas-backup/lib/view/main/admin-head.php
- > /wp-content/plugins/qnap-nas-backup/lib/model/class-qnap-compatibility.php
- > /wp-content/plugins/qnap-nas-backup/lib/model/import/class-qnap-import-blogs.php
- > /wp-content/plugins/qnap-nas-backup/lib/model/export/class-qnap-export-database-file.php
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 Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: migrate, restore, nas, backup, qnap
qnap-nas-backup/qnap.php 77% from 13 tests
The principal PHP file in "QNAP NAS Backup" v. 1.0.5 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("qnap-nas-backup.php" instead of "qnap.php")
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected10,544 lines of code in 105 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 86 | 2,177 | 3,575 | 7,307 |
JavaScript | 7 | 905 | 147 | 3,157 |
SVG | 2 | 0 | 0 | 70 |
CSS | 10 | 0 | 0 | 10 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 150)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 10.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 3.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 150.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 87 | |
▷ Abstract classes | 2 | 2.30% |
▷ Concrete classes | 85 | 97.70% |
▷ Final classes | 0 | 0.00% |
Methods | 302 | |
▷ Static methods | 104 | 34.44% |
▷ Public methods | 248 | 82.12% |
▷ Protected methods | 46 | 15.23% |
▷ Private methods | 8 | 2.65% |
Functions | 80 | |
▷ Named functions | 79 | 98.75% |
▷ Anonymous functions | 1 | 1.25% |
Constants | 76 | |
▷ Global constants | 76 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/view/assets/img/logo-32x32.png | 1.39KB | 1.25KB | ▼ 10.05% |
lib/view/assets/img/logo-20x20.png | 0.86KB | 0.81KB | ▼ 5.59% |
lib/view/assets/img/logo-128x128.png | 5.28KB | 2.94KB | ▼ 44.21% |