Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.16ms] Passed 4 tests
This is a short check of server-side resources used by HM File Link Shop
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.79 ▼1.66 |
Dashboard /wp-admin | 3.34 ▼0.01 | 48.34 ▼17.42 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.80 ▼3.98 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 93.64 ▼1.58 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.99 ▲3.70 |
Settings /wp-admin/admin.php?page=hmds_digital_product_settings | 3.25 | 34.25 |
Sell Download Link /wp-admin/admin.php?page=hmds_digital_product | 3.27 | 34.60 |
Transactions /wp-admin/admin.php?page=hmds_digital_product_transactions | 3.28 | 36.10 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 20 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_digital_product |
wp_digital_product_transaction |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for HM File Link Shop
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲59 | 14.28 ▲0.01 | 1.92 ▼0.08 | 41.63 ▼1.54 |
Dashboard /wp-admin | 2,223 ▲45 | 5.64 ▲0.03 | 88.02 ▼29.21 | 43.82 ▼1.93 |
Posts /wp-admin/edit.php | 2,134 ▲52 | 2.02 ▲0.04 | 36.63 ▲1.08 | 33.26 ▼3.58 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 23.28 ▲0.13 | 664.42 ▼30.35 | 61.87 ▲0.92 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.20 ▲0.04 | 100.42 ▼7.85 | 51.36 ▲0.52 |
Settings /wp-admin/admin.php?page=hmds_digital_product_settings | 818 | 2.03 | 23.37 | 27.07 |
Sell Download Link /wp-admin/admin.php?page=hmds_digital_product | 927 | 1.86 | 36.92 | 26.69 |
Transactions /wp-admin/admin.php?page=hmds_digital_product_transactions | 866 | 2.00 | 24.72 | 25.28 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/hm-digital-shop/admin/view/digital_product_settings_page.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hm-digital-shop/admin/admin_proccess.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hm-digital-shop/admin/ajax_requests.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hm-digital-shop/inc/shortcode.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_rtl() in wp-content/plugins/hm-digital-shop/inc/email_template.php:2
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/hm-digital-shop/admin/view/digital_product_transactions_page.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/hm-digital-shop/admin/view/digital_product_transactions_page.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/hm-digital-shop/admin/view/digital_product_page.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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 your attention:
- Screenshots: Screenshot #1 (Buy the file easily) image required
- License uri: Invalid URI found ("www.gnu.org/licenses/old-licenses/gpl-2.0.en.html")
hm-digital-shop/hm-digital-shop.php Passed 13 tests
The main file in "HM File Link Shop" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
53 characters long description:
This plugin is way to sell download link with parspal
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
There were no executable files found in this plugin1,009 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 95 | 44 | 553 |
JavaScript | 3 | 65 | 66 | 241 |
PO File | 1 | 68 | 90 | 156 |
CSS | 2 | 9 | 1 | 59 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 12 | 54.55% |
▷ Anonymous functions | 10 | 45.45% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 120.21KB | 44.81KB | ▼ 62.73% |