10% uploader-anywhere

Code Review | Uploader Anywhere

WordPress plugin Uploader Anywhere scored10%from 54 tests.

About plugin

  • Plugin page: uploader-anywhere
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0.1
  • WordPress version: 6.3.1
  • First release: Nov 13, 2014
  • Latest release: Nov 26, 2014
  • Number of updates: 7
  • Update frequency: every 1.9 days
  • Top authors: miunosoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,140 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.84 ▼4.08
Dashboard /wp-admin5.68 ▲2.3416.20 ▼44.06
Posts /wp-admin/edit.php5.68 ▲2.3315.95 ▼31.83
Add New Post /wp-admin/post-new.php5.68 ▼0.2015.51 ▼85.32
Media Library /wp-admin/upload.php5.68 ▲2.4517.89 ▼18.71
Settings /wp-admin/edit.php?post_type=ua_link&page=ua_settings5.6815.29
Uploader Links /wp-admin/edit.php?post_type=ua_link5.6815.28
Add Link /wp-admin/post-new.php?post_type=ua_link5.6814.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,977 ▲21614.91 ▲0.381.57 ▲0.0139.75 ▼1.80
Dashboard /wp-admin2,383 ▲2036.27 ▲0.62109.68 ▲19.9439.29 ▼1.84
Posts /wp-admin/edit.php2,326 ▲2263.48 ▲1.5453.08 ▲17.1529.04 ▼4.44
Add New Post /wp-admin/post-new.php1,575 ▲4618.68 ▼4.88630.46 ▼47.9547.44 ▼12.61
Media Library /wp-admin/upload.php1,463 ▲724.24 ▲0.0381.41 ▼19.2443.39 ▼0.06
Settings /wp-admin/edit.php?post_type=ua_link&page=ua_settings1,1853.5642.9429.94
Uploader Links /wp-admin/edit.php?post_type=ua_link1,9303.4350.0428.60
Add Link /wp-admin/post-new.php?post_type=ua_link2,2624.3072.9452.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP193425791,240
JavaScript24045116
Markdown121041

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 code0.56
Average class complexity12.60
▷ Minimum class complexity1.00
▷ Maximum class complexity99.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes166
▷ Abstract classes6136.75%
▷ Concrete classes10563.25%
▷ Final classes65.71%
Methods833
▷ Static methods11113.33%
▷ Public methods50560.62%
▷ Protected methods19423.29%
▷ Private methods13416.09%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants29
▷ Global constants00.00%
▷ Class constants29100.00%
▷ Public constants29100.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
FileSize - originalSize - compressedSavings
asset/image/icon_32x32.png1.40KB1.26KB▼ 10.25%
asset/image/icon_16x16.png0.68KB0.66KB▼ 2.16%