Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.38MB] [CPU: ▼142.19ms] Passed 4 tests
This is a short check of server-side resources used by File Away
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.99 | 41.02 ▲22.41 |
Dashboard /wp-admin | 3.47 ▲0.41 | 48.61 ▲5.26 |
Posts /wp-admin/edit.php | 3.52 ▲0.41 | 45.26 ▼1.46 |
Add New Post /wp-admin/post-new.php | 5.77 ▲0.33 | 85.82 ▼574.60 |
Media Library /wp-admin/upload.php | 3.35 ▲0.35 | 33.58 ▲2.03 |
Server storage [IO: ▲4.54MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- The plugin illegally modified 1 file (0.83KB) outside of "wp-content/plugins/file-away/" and "wp-content/uploads/"
- (new file) wp-content/themes/twentytwentyone/file-away-iframe-template.php
Filesystem: 231 new files
Database: 2 new tables, 3 new options
New tables |
---|
wp_fileaway_downloads |
wp_fileaway_metadata |
New WordPress options |
---|
fileaway_options |
fileaway_db2_version |
fileaway_db_version |
Browser metrics Passed 4 tests
Checking browser requirements for File Away
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,973 ▲377 | 16.70 ▲1.12 | 22.54 ▲13.41 | 52.38 ▲2.20 |
Dashboard /wp-admin | 2,985 ▲51 | 5.88 ▼0.07 | 135.44 ▼14.03 | 152.99 ▲31.53 |
Posts /wp-admin/edit.php | 2,785 ▲46 | 2.76 ▼0.05 | 64.46 ▼4.97 | 92.69 ▲1.17 |
Add New Post /wp-admin/post-new.php | 1,708 ▲36 | 18.40 ▼0.49 | 378.29 ▼9.92 | 116.52 ▼0.61 |
Media Library /wp-admin/upload.php | 1,841 ▲31 | 5.01 ▼0.03 | 129.83 ▼27.78 | 143.26 ▲18.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_fileaway_downloads
- wp_fileaway_metadata
- This plugin does not fully uninstall, leaving 3 options in the database
- fileaway_options
- fileaway_db_version
- fileaway_db2_version
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 69× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/file-away/lib/cls/class.fileaway_values.php
- > /wp-content/plugins/file-away/lib/js/chosen/modal.chosen.js.php
- > /wp-content/plugins/file-away/lib/inc/inc.filters.php
- > /wp-content/plugins/file-away/lib/cls/class.fileaway_attributes.php
- > /wp-content/plugins/file-away/lib/cls/class.fileaway_languages.php
- > /wp-content/plugins/file-away/lib/inc/inc.thumbnails-setup.php
- > /wp-content/plugins/file-away/lib/cls/class.fileaway_prints.php
- > /wp-content/plugins/file-away/lib/cls/class.fileaway_management.php
- > /wp-content/plugins/file-away/lib/inc/inc.icons.php
- > /wp-content/plugins/file-away/lib/cls/class.fileaway_csv.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/file-away/templates/file-away-iframe-template.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/file-away/file-away.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7, #8, #9, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #20, #21, #22, #23, #24, #25, #26 in file-away/assets to your readme.txt
- Tags: There are too many tags (12 tag instead of maximum 10)
file-away/file-away.php Passed 13 tests
"File Away" version 3.9.9.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
125 characters long description:
Upload, manage, and display files from your server directories or page attachments in stylized lists or sortable data tables.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected52,465 lines of code in 146 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 73 | 0 | 2,811 | 14,472 |
PO File | 38 | 4,903 | 5,956 | 13,848 |
JavaScript | 15 | 1 | 1,512 | 13,435 |
CSS | 12 | 48 | 299 | 8,431 |
SVG | 8 | 1 | 1 | 2,279 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 153)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 67.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 444.00 |
Average method complexity | 10.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 153.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 28 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 193 | |
▷ Static methods | 41 | 21.24% |
▷ Public methods | 159 | 82.38% |
▷ Protected methods | 3 | 1.55% |
▷ Private methods | 31 | 16.06% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
20 PNG files occupy 0.68MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/img/fileaway_values_banner.png | 104.59KB | 45.19KB | ▼ 56.79% |
lib/img/other_plugins.png | 5.47KB | 1.69KB | ▼ 69.16% |
lib/img/fileup_banner.png | 89.23KB | 36.16KB | ▼ 59.47% |
lib/img/twitterfile.png | 10.25KB | 3.55KB | ▼ 65.38% |
lib/img/eyesonly_banner.png | 23.35KB | 7.93KB | ▼ 66.04% |