89% share5s

Code Review | Share5s - Upload, manage, sharing your file in free file hosting

WordPress plugin Share5s - Upload, manage, sharing your file in free file hosting scored89%from 54 tests.

About plugin

  • Plugin page: share5s
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.1.1
  • WordPress version: 6.3.1
  • First release: Apr 30, 2019
  • Latest release: Apr 30, 2019
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: share5s (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /593 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.95ms] Passed 4 tests

Analyzing server-side resources used by Share5s - Upload, manage, sharing your file in free file hosting
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0739.93 ▼9.05
Dashboard /wp-admin3.37 ▲0.0747.72 ▼1.52
Posts /wp-admin/edit.php3.49 ▲0.1347.06 ▼1.50
Add New Post /wp-admin/post-new.php5.95 ▲0.0785.86 ▼7.72
Media Library /wp-admin/upload.php3.30 ▲0.0737.64 ▲3.31
Share5s /wp-admin/upload.php?page=share5s-load3.2732.94

Server storage [IO: ▲1.63MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Share5s - Upload, manage, sharing your file in free file hosting
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.27 ▼1.031.67 ▼0.7238.58 ▼5.39
Dashboard /wp-admin2,224 ▲365.87 ▲0.97108.61 ▼3.7083.99 ▲37.04
Posts /wp-admin/edit.php2,107 ▲181.98 ▼0.0338.93 ▼1.8735.62 ▼5.60
Add New Post /wp-admin/post-new.php1,553 ▲1118.57 ▲0.16703.42 ▲59.1958.35 ▲5.58
Media Library /wp-admin/upload.php1,403 ▲154.24 ▲0.15100.98 ▼8.6345.92 ▼0.36
Share5s /wp-admin/upload.php?page=share5s-load8772.0224.9223.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Contributors: The plugin contributors field is not present
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (https://i.imgur.com/rpAQCfb.png), #2 (https://i.imgur.com/YV0hJNc.png), #3 (https://i.imgur.com/u3tNVkT.png)
Please take inspiration from this readme.txt

share5s/share5s.php Passed 13 tests

The main PHP file in "Share5s - Upload, manage, sharing your file in free file hosting" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
83 characters long description:
Plugin by share5s.com upload, share and manage files in one simple to use file host

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin4,636 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
CSS1161372,952
SVG3001,179
PHP914040503
JavaScript2002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity11.75
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods33
▷ Static methods412.12%
▷ Public methods2781.82%
▷ Protected methods00.00%
▷ Private methods618.18%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png0.93KB0.82KB▼ 11.46%