Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▲4.50ms] Passed 4 tests
A check of server-side resources used by Social Viral Downloader
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 47.73 ▲7.01 |
Dashboard /wp-admin | 3.81 ▲0.47 | 81.67 ▲15.64 |
Posts /wp-admin/edit.php | 3.85 ▲0.49 | 55.61 ▲4.56 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.47 | 99.87 ▼1.58 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 50.07 ▲7.99 |
Tags /wp-admin/edit-tags.php?taxonomy=tags&post_type=downloadables | 3.65 | 41.80 |
Categories /wp-admin/edit-tags.php?taxonomy=categories&post_type=downloadables | 3.66 | 36.88 |
Add Downloadable /wp-admin/post-new.php?post_type=downloadables | 3.82 | 77.30 |
All Downloadable /wp-admin/edit.php?post_type=downloadables | 3.71 | 41.98 |
Downloadables Logs /wp-admin/edit.php?post_type=downloadables&page=downloadables_logs | 3.68 | 44.32 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 69 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_download_data |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Social Viral Downloader
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,155 ▲394 | 13.54 ▼0.75 | 10.07 ▲8.22 | 42.88 ▲3.29 |
Dashboard /wp-admin | 2,446 ▲269 | 5.60 ▼0.09 | 88.64 ▼3.32 | 76.47 ▲35.80 |
Posts /wp-admin/edit.php | 2,355 ▲255 | 2.02 ▼0.02 | 42.58 ▲3.62 | 34.24 ▼4.69 |
Add New Post /wp-admin/post-new.php | 1,919 ▲383 | 20.31 ▼2.97 | 765.64 ▲98.26 | 64.19 ▲9.77 |
Media Library /wp-admin/upload.php | 1,646 ▲246 | 4.27 ▲0.06 | 95.15 ▼11.75 | 75.34 ▲33.63 |
Tags /wp-admin/edit-tags.php?taxonomy=tags&post_type=downloadables | 1,498 | 2.30 | 28.29 | 33.40 |
Categories /wp-admin/edit-tags.php?taxonomy=categories&post_type=downloadables | 1,526 | 2.28 | 30.85 | 30.72 |
Add Downloadable /wp-admin/post-new.php?post_type=downloadables | 2,353 | 3.97 | 74.34 | 89.98 |
All Downloadable /wp-admin/edit.php?post_type=downloadables | 1,496 | 2.00 | 36.00 | 35.05 |
Downloadables Logs /wp-admin/edit.php?post_type=downloadables&page=downloadables_logs | 1,444 | 4.23 | 65.10 | 58.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- The uninstall procedure failed, leaving 1 table in the database
- wp_download_data
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fb-viral-downloader/includes/fb-viral-downloader-core-functions.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fb-viral-downloader/includes/fb-viral-downloader-core-functions.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=downloadables
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'model')" "TypeError: Cannot read properties of undefined (reading 'model')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/fb-viral-downloader/assets/admin/js/insert.js?ver=1.0.0:4:34)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=downloadables
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'model')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 51 tag instead of maximum 10
fb-viral-downloader/viral_downloader.php 92% from 13 tests
The primary PHP file in "Social Viral Downloader" version 2.0.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("fb-viral-downloader.php" instead of "viral_downloader.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin5,257 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 425 | 363 | 2,276 |
CSS | 7 | 373 | 220 | 2,234 |
JavaScript | 11 | 29 | 4 | 575 |
PO File | 1 | 74 | 83 | 165 |
SVG | 1 | 0 | 1 | 7 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 26.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 165.00 |
Average method complexity | 4.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 118 | |
▷ Static methods | 2 | 1.69% |
▷ Public methods | 118 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
25 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/f005.png | 0.27KB | 0.34KB | 0.00% |
lib/jquery/upload/images/Placeholderpdf.png | 14.58KB | 5.45KB | ▼ 62.63% |
lib/jquery/upload/images/Placeholderxls.png | 6.25KB | 3.17KB | ▼ 49.24% |
assets/images/dualcube.png | 3.29KB | 0.65KB | ▼ 80.17% |
assets/images/viral_downloader.png | 1.57KB | 0.90KB | ▼ 42.50% |