Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/free-large-file-sharing-widget-powered-by-sharepigcom/FreeFileSharingFromSharepigcom_Plugin.php+25
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▼1.80MB] [CPU: ▼220.26ms] Passed 4 tests
A check of server-side resources used by Free File Sharing from Sharepig.com
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.83 ▼0.89 | 10.31 ▼14.75 |
Dashboard /wp-admin | 1.85 ▼1.20 | 6.63 ▼33.73 |
Posts /wp-admin/edit.php | 1.85 ▼1.26 | 7.68 ▼35.41 |
Add New Post /wp-admin/post-new.php | 1.85 ▼3.58 | 6.58 ▼786.76 |
Media Library /wp-admin/upload.php | 1.85 ▼1.15 | 5.89 ▼25.12 |
Free File Sharing from Sharepig.com /wp-admin/plugins.php?page=FreeFileSharingFromSharepigcom_PluginSettings | 1.86 | 6.75 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 5 new options
New WordPress options |
---|
FreeFileSharingFromSharepigcom_Plugin__installed |
FreeFileSharingFromSharepigcom_Plugin_widgetWidth |
FreeFileSharingFromSharepigcom_Plugin_DashboardID |
FreeFileSharingFromSharepigcom_Plugin_widgetHeight |
FreeFileSharingFromSharepigcom_Plugin__version |
Browser metrics Passed 4 tests
An overview of browser requirements for Free File Sharing from Sharepig.com
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,825 ▲229 | 16.33 ▲0.41 | 12.81 ▲2.72 | 45.67 ▼5.84 |
Dashboard /wp-admin | 2,982 ▲49 | 5.96 ▼0.02 | 149.73 ▼5.04 | 110.53 ▲3.97 |
Posts /wp-admin/edit.php | 2,745 ▲6 | 2.71 ▼0.01 | 66.28 ▼0.94 | 88.77 ▼3.72 |
Add New Post /wp-admin/post-new.php | 1,690 ▲18 | 18.81 ▲0.00 | 396.53 ▼8.82 | 106.49 ▲3.48 |
Media Library /wp-admin/upload.php | 1,819 ▲12 | 5.12 ▲0.05 | 166.66 ▲13.72 | 112.95 ▲2.86 |
Free File Sharing from Sharepig.com /wp-admin/plugins.php?page=FreeFileSharingFromSharepigcom_PluginSettings | 1,171 | 2.36 | 57.50 | 78.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5663
wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The uninstall procedure has failed, leaving 5 options in the database
- FreeFileSharingFromSharepigcom_Plugin__installed
- FreeFileSharingFromSharepigcom_Plugin_widgetHeight
- FreeFileSharingFromSharepigcom_Plugin__version
- FreeFileSharingFromSharepigcom_Plugin_widgetWidth
- FreeFileSharingFromSharepigcom_Plugin_DashboardID
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/plugins.php?page=FreeFileSharingFromSharepigcom_PluginSettings
- > User notice in wp-includes/functions.php+5663
wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/plugins.php?page=FreeFileSharingFromSharepigcom_PluginSettings
- > User notice in wp-includes/functions.php+5663
wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the my-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=FreeFileSharingFromSharepigcom_PluginSettings
- > User notice in wp-includes/functions.php+5663
wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the my-script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/free-large-file-sharing-widget-powered-by-sharepigcom/free-file-sharing-from-sharepigcom.php:67
- > 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 87% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: No tags were detected
- Donate link: Invalid URI ("")
free-large-file-sharing-widget-powered-by-sharepigcom/free-file-sharing-from-sharepigcom.php 85% from 13 tests
Analyzing the main PHP file in "Free File Sharing from Sharepig.com" version 0.1
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("free-large-file-sharing-widget-powered-by-sharepigcom.php" instead of "free-file-sharing-from-sharepigcom.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected10,698 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 15 | 10 | 7,039 |
JavaScript | 4 | 270 | 275 | 3,138 |
PHP | 8 | 172 | 519 | 521 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 1.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 2 | 33.33% |
▷ Concrete classes | 4 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 44 | 61.11% |
▷ Protected methods | 28 | 38.89% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 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
No PNG files were detected