Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲4.67MB] [CPU: ▲24.04ms] 75% from 4 tests
A check of server-side resources used by Downloadio - Manage and Sell Digital Downloads
Please take the time to fix the following items
- RAM: Total memory usage must be kept under 10MB (currently 10.81MB on /wp-admin/post-new.php?post_type=downloadio-download)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.09 ▲4.63 | 76.02 ▲37.18 |
Dashboard /wp-admin | 8.03 ▲4.68 | 74.42 ▲14.54 |
Posts /wp-admin/edit.php | 8.08 ▲4.72 | 85.73 ▲39.27 |
Add New Post /wp-admin/post-new.php | 10.77 ▲4.88 | 109.21 ▲8.27 |
Media Library /wp-admin/upload.php | 7.89 ▲4.66 | 68.77 ▲36.15 |
Add New /wp-admin/post-new.php?post_type=downloadio-download | 10.81 | 112.54 |
Logs /wp-admin/edit.php?post_type=downloadio-download&page=downloadio-logs | 8.08 | 72.21 |
Categories /wp-admin/edit-tags.php?taxonomy=downloadio-download-category&post_type=downloadio-download | 7.89 | 62.93 |
All Downloads /wp-admin/edit.php?post_type=downloadio-download | 8.10 | 80.09 |
Reports /wp-admin/edit.php?post_type=downloadio-download&page=downloadio-reports | 8.17 | 66.22 |
Access Codes /wp-admin/edit.php?post_type=downloadio-ac | 8.12 | 71.98 |
Extensions /wp-admin/edit.php?post_type=downloadio-download&page=downloadio-extensions | 7.94 | 66.98 |
Tags /wp-admin/edit-tags.php?taxonomy=downloadio-download-tag&post_type=downloadio-download | 7.89 | 62.53 |
Users /wp-admin/edit.php?post_type=downloadio-download&page=downloadio-users | 8.05 | 65.37 |
Settings /wp-admin/edit.php?post_type=downloadio-download&page=downloadio-settings | 8.05 | 70.06 |
Server storage [IO: ▲4.18MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 431 new files
Database: 5 new tables, 14 new options
New tables |
---|
wp_downloadio_notice_sessions |
wp_downloadio_download_acquires |
wp_downloadio_download_files |
wp_downloadio_download_bundles |
wp_downloadio_download_access_codes |
New WordPress options |
---|
widget_recent-comments |
_downloadio_settings |
theysaidso_admin_options |
can_compress_scripts |
downloadio_version |
downloadio_my_downloads_page |
downloadio_downloads_page |
downloadio_permalinks |
downloadio_redirect_flag |
downloadio_no_access_page |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Downloadio - Manage and Sell Digital Downloads
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲96 | 14.23 ▼0.17 | 1.82 ▲0.03 | 41.94 ▲2.01 |
Dashboard /wp-admin | 2,260 ▲79 | 5.65 ▲0.07 | 96.15 ▼4.85 | 42.24 ▲0.60 |
Posts /wp-admin/edit.php | 2,162 ▲62 | 2.03 ▲0.08 | 39.20 ▲2.98 | 34.93 ▼0.25 |
Add New Post /wp-admin/post-new.php | 1,578 ▲51 | 22.86 ▼0.31 | 594.72 ▼67.71 | 51.44 ▼7.74 |
Media Library /wp-admin/upload.php | 1,462 ▲65 | 4.21 ▲0.00 | 96.02 ▼2.76 | 43.02 ▼6.45 |
Add New /wp-admin/post-new.php?post_type=downloadio-download | 7,947 | 24.13 | 1,009.03 | 87.29 |
Logs /wp-admin/edit.php?post_type=downloadio-download&page=downloadio-logs | 1,392 | 5.10 | 61.93 | 20.76 |
Categories /wp-admin/edit-tags.php?taxonomy=downloadio-download-category&post_type=downloadio-download | 1,339 | 2.12 | 26.37 | 31.26 |
All Downloads /wp-admin/edit.php?post_type=downloadio-download | 1,541 | 5.25 | 61.59 | 28.20 |
Reports /wp-admin/edit.php?post_type=downloadio-download&page=downloadio-reports | 2,299 | 6.68 | 116.94 | 32.46 |
Access Codes /wp-admin/edit.php?post_type=downloadio-ac | 1,550 | 5.35 | 63.26 | 27.99 |
Extensions /wp-admin/edit.php?post_type=downloadio-download&page=downloadio-extensions | 1,306 | 5.01 | 57.16 | 72.42 |
Tags /wp-admin/edit-tags.php?taxonomy=downloadio-download-tag&post_type=downloadio-download | 1,305 | 2.24 | 26.73 | 29.18 |
Users /wp-admin/edit.php?post_type=downloadio-download&page=downloadio-users | 1,328 | 5.33 | 58.43 | 22.98 |
Settings /wp-admin/edit.php?post_type=downloadio-download&page=downloadio-settings | 3,307 | 5.44 | 69.28 | 46.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie tables detected upon uninstall: 5 tables
- wp_downloadio_download_acquires
- wp_downloadio_download_bundles
- wp_downloadio_download_files
- wp_downloadio_download_access_codes
- wp_downloadio_notice_sessions
- Zombie WordPress options detected upon uninstall: 14 options
- downloadio_version
- theysaidso_admin_options
- downloadio_downloads_page
- downloadio_installed
- widget_theysaidso_widget
- downloadio_no_access_page
- widget_recent-comments
- widget_recent-posts
- downloadio_permalinks
- can_compress_scripts
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following items
- 22× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\AbstractParser' not found in wp-content/plugins/downloadio/vendor/ua-parser/uap-php/src/DeviceParser.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/downloadio/includes/Admin/Users/Details/Table.php:13
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\AbstractParser' not found in wp-content/plugins/downloadio/vendor/ua-parser/uap-php/src/OperatingSystemParser.php:15
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Exception\\DomainException' not found in wp-content/plugins/downloadio/vendor/ua-parser/uap-php/src/Exception/ReaderException.php:11
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Exception\\DomainException' not found in wp-content/plugins/downloadio/vendor/ua-parser/uap-php/src/Exception/FetcherException.php:11
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Result\\AbstractVersionedSoftware' not found in wp-content/plugins/downloadio/vendor/ua-parser/uap-php/src/Result/OperatingSystem.php:12
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\AbstractParser' not found in wp-content/plugins/downloadio/vendor/ua-parser/uap-php/src/Parser.php:14
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/downloadio/vendor/ua-parser/uap-php/src/Command/LogfileCommand.php:26
- > PHP Fatal error
Uncaught Error: Interface 'UAParser\\Util\\Logfile\\ReaderInterface' not found in wp-content/plugins/downloadio/vendor/ua-parser/uap-php/src/Util/Logfile/AbstractReader.php:14
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Util\\Logfile\\AbstractReader' not found in wp-content/plugins/downloadio/vendor/ua-parser/uap-php/src/Util/Logfile/ApacheCommonLogFormatReader.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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: downloadio, download manager, digital store, digital product, download
downloadio/downloadio.php Passed 13 tests
This is the main PHP file of "Downloadio - Manage and Sell Digital Downloads" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
34 characters long description:
Manage and Sell Digital Downloads.
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Please make sure to remedy the following
- For security reasons, never distribute binary or executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/downloadio/vendor/bin/uaparser.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 274 | 7,815 | 7,623 | 36,483 |
CSS | 26 | 492 | 931 | 10,355 |
PO File | 20 | 3,037 | 3,414 | 6,180 |
JavaScript | 19 | 1,560 | 719 | 5,348 |
Sass | 15 | 959 | 3 | 4,837 |
Markdown | 3 | 99 | 0 | 317 |
JSON | 4 | 0 | 0 | 279 |
SVG | 16 | 0 | 1 | 44 |
Bourne Shell | 2 | 14 | 1 | 39 |
XML | 1 | 0 | 0 | 15 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 167)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.66 |
Average class complexity | 30.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 306.00 |
Average method complexity | 6.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 167.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 151 | |
▷ Abstract classes | 7 | 4.64% |
▷ Concrete classes | 144 | 95.36% |
▷ Final classes | 5 | 3.47% |
Methods | 781 | |
▷ Static methods | 99 | 12.68% |
▷ Public methods | 508 | 65.04% |
▷ Protected methods | 241 | 30.86% |
▷ Private methods | 32 | 4.10% |
Functions | 182 | |
▷ Named functions | 148 | 81.32% |
▷ Anonymous functions | 34 | 18.68% |
Constants | 12 | |
▷ Global constants | 11 | 91.67% |
▷ Class constants | 1 | 8.33% |
▷ Public constants | 1 | 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
14 PNG files occupy 0.40MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/jquery-ui/ui-icons_cc0000_256x240.png | 4.52KB | 4.18KB | ▼ 7.56% |
assets/images/jquery-ui/ui-icons_555555_256x240.png | 6.91KB | 4.18KB | ▼ 39.47% |
assets/images/placeholder-1200x900.png | 79.77KB | 50.11KB | ▼ 37.18% |
assets/images/extensions/ninja-forms.png | 41.04KB | 18.07KB | ▼ 55.98% |
libs/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |