Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/uploader-anywhere/include/library/admin-page-framework/uploader-anywhere-admin-page-framework.min.php+27
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▲1.12MB] [CPU: ▼44.98ms] Passed 4 tests
Server-side resources used by Uploader Anywhere
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.84 ▼4.08 |
Dashboard /wp-admin | 5.68 ▲2.34 | 16.20 ▼44.06 |
Posts /wp-admin/edit.php | 5.68 ▲2.33 | 15.95 ▼31.83 |
Add New Post /wp-admin/post-new.php | 5.68 ▼0.20 | 15.51 ▼85.32 |
Media Library /wp-admin/upload.php | 5.68 ▲2.45 | 17.89 ▼18.71 |
Settings /wp-admin/edit.php?post_type=ua_link&page=ua_settings | 5.68 | 15.29 |
Uploader Links /wp-admin/edit.php?post_type=ua_link | 5.68 | 15.28 |
Add Link /wp-admin/post-new.php?post_type=ua_link | 5.68 | 14.98 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Uploader Anywhere
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,977 ▲216 | 14.91 ▲0.38 | 1.57 ▲0.01 | 39.75 ▼1.80 |
Dashboard /wp-admin | 2,383 ▲203 | 6.27 ▲0.62 | 109.68 ▲19.94 | 39.29 ▼1.84 |
Posts /wp-admin/edit.php | 2,326 ▲226 | 3.48 ▲1.54 | 53.08 ▲17.15 | 29.04 ▼4.44 |
Add New Post /wp-admin/post-new.php | 1,575 ▲46 | 18.68 ▼4.88 | 630.46 ▼47.95 | 47.44 ▼12.61 |
Media Library /wp-admin/upload.php | 1,463 ▲72 | 4.24 ▲0.03 | 81.41 ▼19.24 | 43.39 ▼0.06 |
Settings /wp-admin/edit.php?post_type=ua_link&page=ua_settings | 1,185 | 3.56 | 42.94 | 29.94 |
Uploader Links /wp-admin/edit.php?post_type=ua_link | 1,930 | 3.43 | 50.04 | 28.60 |
Add Link /wp-admin/post-new.php?post_type=ua_link | 2,262 | 4.30 | 72.94 | 52.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/uploader-anywhere/include/library/admin-page-framework/uploader-anywhere-admin-page-framework.min.php+27
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 16 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ua_link
- > Deprecated in wp-content/plugins/uploader-anywhere/include/library/admin-page-framework/uploader-anywhere-admin-page-framework.min.php+27
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ua_link
- > Warning in wp-content/plugins/uploader-anywhere/include/library/admin-page-framework/uploader-anywhere-admin-page-framework.min.php+7
Declaration of UploaderAnywhere_AdminPageFramework_PostType_View::content($sContent) should be compatible with UploaderAnywhere_AdminPageFramework_Factory_View::content()
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ua_link
- > Warning in wp-content/plugins/uploader-anywhere/include/library/admin-page-framework/uploader-anywhere-admin-page-framework.min.php+7
Declaration of UploaderAnywhere_AdminPageFramework_Widget_View::content($sContent, $aArguments, $aFormData) should be compatible with UploaderAnywhere_AdminPageFramework_Factory_View::content()
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
The following issues need your attention
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'UploaderAnywhere_AdminPageFramework' not found in wp-content/plugins/uploader-anywhere/include/class/admin/page/UploaderAnywhere_AdminPage.php:11
- > PHP Fatal error
Uncaught Error: Class 'UploaderAnywhere_AdminPageFramework_FieldType' not found in wp-content/plugins/uploader-anywhere/include/library/field-type/UploaderAnywhere_RevealerCustomFieldType.php:3
- > PHP Warning
Declaration of UploaderAnywhere_AdminPageFramework_PostType_View::content($sContent) should be compatible with UploaderAnywhere_AdminPageFramework_Factory_View::content() in wp-content/plugins/uploader-anywhere/include/library/admin-page-framework/uploader-anywhere-admin-page-framework.min.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'UploaderAnywhere_AdminPageFramework_FieldType' not found in wp-content/plugins/uploader-anywhere/include/library/field-type/UploaderAnywhere_MultipleTextFieldType.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/uploader-anywhere/include/library/admin-page-framework/uploader-anywhere-admin-page-framework.min.php:27
- > PHP Fatal error
Uncaught Error: Class 'UploaderAnywhere_AdminPageFramework_MetaBox' not found in wp-content/plugins/uploader-anywhere/include/class/admin/meta_box/UploaderAnywhere_MetaBox_Base.php:7
- > PHP Fatal error
Uncaught Error: Class 'UploaderAnywhere_AdminPageFramework_PostType' not found in wp-content/plugins/uploader-anywhere/include/class/post_type/UploaderAnywhere_PostType_Link.php:7
- > PHP Fatal error
Uncaught Error: Class 'UploaderAnywhere_MetaBox_Base' not found in wp-content/plugins/uploader-anywhere/include/class/admin/meta_box/UploaderAnywhere_MetaBox_Main.php:7
- > PHP Fatal error
Uncaught Error: Class 'UploaderAnywhere_Registry' not found in wp-content/plugins/uploader-anywhere/include/uploader-anywhere-include-class-file-list.php:3
- > PHP Warning
Declaration of UploaderAnywhere_AdminPageFramework_Widget_View::content($sContent, $aArguments, $aFormData) should be compatible with UploaderAnywhere_AdminPageFramework_Factory_View::content() in wp-content/plugins/uploader-anywhere/include/library/admin-page-framework/uploader-anywhere-admin-page-framework.min.php on line 7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
8 plugin tags: button, admin, media, admin page, uploader...
uploader-anywhere/uploader-anywhere.php Passed 13 tests
The main file in "Uploader Anywhere" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
70 characters long description:
Inserts links of the uploader modal window anywhere in the admin area.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,397 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 342 | 579 | 1,240 |
JavaScript | 2 | 40 | 45 | 116 |
Markdown | 1 | 21 | 0 | 41 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 12.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 166 | |
▷ Abstract classes | 61 | 36.75% |
▷ Concrete classes | 105 | 63.25% |
▷ Final classes | 6 | 5.71% |
Methods | 833 | |
▷ Static methods | 111 | 13.33% |
▷ Public methods | 505 | 60.62% |
▷ Protected methods | 194 | 23.29% |
▷ Private methods | 134 | 16.09% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 29 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 29 | 100.00% |
▷ Public constants | 29 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
asset/image/icon_32x32.png | 1.40KB | 1.26KB | ▼ 10.25% |
asset/image/icon_16x16.png | 0.68KB | 0.66KB | ▼ 2.16% |