Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.61MB] [CPU: ▲31.69ms] 75% from 4 tests
An overview of server-side resources used by Shared Files – Advanced File Sharing & Download Manager with Frontend Uploads & Lead Generation
It is recommended to improve the following
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.61MB on /wp-admin/edit.php?post_type=shared_file&page=shared-files-sync-files)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.96 ▲5.50 | 69.08 ▲26.23 |
Dashboard /wp-admin | 8.98 ▲5.68 | 87.33 ▲37.07 |
Posts /wp-admin/edit.php | 9.02 ▲5.66 | 92.72 ▲46.65 |
Add New Post /wp-admin/post-new.php | 11.51 ▲5.62 | 123.94 ▲20.09 |
Media Library /wp-admin/upload.php | 8.98 ▲5.75 | 76.00 ▲43.37 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.07 | 77.40 |
Shortcodes /wp-admin/edit.php?post_type=shared_file&page=shared-files-shortcodes | 8.98 | 69.98 |
Add New /wp-admin/post-new.php?post_type=shared_file | 9.03 | 93.08 |
Shared Files /wp-admin/options-general.php?page=shared-files | 9.06 | 75.29 |
Categories /wp-admin/edit.php?post_type=shared_file&page=shared-files-categories-info | 8.98 | 70.90 |
Statistics /wp-admin/edit.php?post_type=shared_file&page=shared-files-statistics | 8.98 | 69.22 |
File Management /wp-admin/edit.php?post_type=shared_file | 8.98 | 74.88 |
Settings ➤ /wp-admin/edit.php?post_type=shared_file&page=./options-general.php?page=shared-files | 8.98 | 58.87 |
Download log /wp-admin/edit.php?post_type=shared_file&page=shared-files-download-log | 8.98 | 74.08 |
Sync Files /wp-admin/edit.php?post_type=shared_file&page=shared-files-sync-files | 8.98 | 67.64 |
Server storage [IO: ▲5.29MB] [DB: ▲0.08MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 385 new files
Database: 3 new tables, 12 new options
New tables |
---|
wp_shared_files_log |
wp_shared_files_contacts |
wp_shared_files_download_log |
New WordPress options |
---|
db_upgraded |
fs_active_plugins |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
fs_debug_mode |
shared_files_version |
shared_files_settings |
shared-files-sc |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Shared Files – Advanced File Sharing & Download Manager with Frontend Uploads & Lead Generation
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,993 ▲231 | 13.83 ▼0.44 | 9.80 ▲8.12 | 26.88 ▼17.35 |
Dashboard /wp-admin | 2,305 ▲125 | 5.59 ▼0.01 | 91.88 ▼1.93 | 47.79 ▲1.88 |
Posts /wp-admin/edit.php | 2,211 ▲111 | 2.03 ▲0.08 | 37.85 ▼3.25 | 37.00 ▼0.30 |
Add New Post /wp-admin/post-new.php | 1,603 ▲77 | 22.92 ▼0.80 | 676.24 ▲25.91 | 63.40 ▼1.00 |
Media Library /wp-admin/upload.php | 1,510 ▲107 | 4.39 ▲0.14 | 98.80 ▲0.98 | 46.97 ▲5.71 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,175 | 1.70 | 28.41 | 33.46 |
Shortcodes /wp-admin/edit.php?post_type=shared_file&page=shared-files-shortcodes | 1,938 | 1.86 | 31.47 | 72.02 |
Add New /wp-admin/post-new.php?post_type=shared_file | 2,420 | 6.88 | 156.32 | 75.92 |
Shared Files /wp-admin/options-general.php?page=shared-files | 1,112 | 1.70 | 27.57 | 51.94 |
Categories /wp-admin/edit.php?post_type=shared_file&page=shared-files-categories-info | 896 | 1.78 | 26.51 | 37.11 |
Statistics /wp-admin/edit.php?post_type=shared_file&page=shared-files-statistics | 906 | 1.67 | 26.95 | 35.02 |
File Management /wp-admin/edit.php?post_type=shared_file | 1,399 | 2.19 | 37.26 | 46.66 |
Settings ➤ /wp-admin/edit.php?post_type=shared_file&page=./options-general.php?page=shared-files | 28 | 0.41 | 0.08 | 3.68 |
Download log /wp-admin/edit.php?post_type=shared_file&page=shared-files-download-log | 951 | 1.69 | 27.78 | 35.95 |
Sync Files /wp-admin/edit.php?post_type=shared_file&page=shared-files-sync-files | 909 | 1.70 | 26.63 | 37.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/shared-files/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- Zombie tables were found after uninstall: 3 tables
- wp_shared_files_log
- wp_shared_files_contacts
- wp_shared_files_download_log
- Zombie WordPress options were found after uninstall: 12 options
- fs_active_plugins
- fs_accounts
- shared_files_version
- widget_theysaidso_widget
- can_compress_scripts
- fs_debug_mode
- db_upgraded
- widget_recent-posts
- shared_files_settings
- widget_recent-comments
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/edit.php?post_type=shared_file&page=./options-general.php?page=shared-files
- > Network (severe)
wp-admin/edit.php?post_type=shared_file&page=./options-general.php?page=shared-files - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
shared-files/shared-files.php Passed 13 tests
The entry point to "Shared Files – Advanced File Sharing & Download Manager with Frontend Uploads & Lead Generation" version 1.7.10 is a PHP file that has certain tags in its header comment area
68 characters long description:
A simple yet effective tool to list downloadable files on your site.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin56,381 lines of code in 302 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 171 | 10,018 | 18,435 | 43,306 |
JavaScript | 72 | 2,632 | 852 | 10,165 |
PO File | 5 | 908 | 1,472 | 2,239 |
CSS | 22 | 66 | 7 | 569 |
SVG | 31 | 2 | 1 | 72 |
XML | 1 | 11 | 9 | 30 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 57.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 5.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 103 | |
▷ Abstract classes | 2 | 1.94% |
▷ Concrete classes | 101 | 98.06% |
▷ Final classes | 0 | 0.00% |
Methods | 1,466 | |
▷ Static methods | 270 | 18.42% |
▷ Public methods | 1,058 | 72.17% |
▷ Protected methods | 17 | 1.16% |
▷ Private methods | 391 | 26.67% |
Functions | 109 | |
▷ Named functions | 108 | 99.08% |
▷ Anonymous functions | 1 | 0.92% |
Constants | 149 | |
▷ Global constants | 102 | 68.46% |
▷ Class constants | 47 | 31.54% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
31 PNG files occupy 0.48MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/gif.png | 15.34KB | 1.19KB | ▼ 92.23% |
img/mov.png | 2.82KB | 0.53KB | ▼ 81.14% |
img/aj.png | 15.93KB | 1.39KB | ▼ 91.28% |
img/category-password-protection.png | 171.91KB | 112.15KB | ▼ 34.76% |
img/avi.png | 2.82KB | 0.53KB | ▼ 81.14% |