Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.44MB] [CPU: ▼143.42ms] Passed 4 tests
An overview of server-side resources used by foldio-plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.16 ▲0.43 | 40.80 ▲9.96 |
Dashboard /wp-admin | 3.67 ▲0.61 | 37.85 ▼2.65 |
Posts /wp-admin/edit.php | 3.73 ▲0.62 | 41.71 ▼3.83 |
Add New Post /wp-admin/post-new.php | 5.54 ▲0.10 | 85.84 ▼570.45 |
Media Library /wp-admin/upload.php | 3.68 ▲0.67 | 38.45 ▲3.26 |
License /wp-admin/admin.php?page=license | 3.65 | 36.23 |
Custom Setting /wp-admin/admin.php?page=foldio_page_of_admin | 3.65 | 36.55 |
Server storage [IO: ▲4.85MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 94 new files
Database: 4 new tables, no new options
New tables |
---|
wp_foldio360_licence_details |
wp_foldio360_store |
wp_foldio360_images_list |
wp_foldio360_shortcode_setting |
Browser metrics Passed 4 tests
foldio-plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,925 ▲329 | 17.21 ▲1.53 | 19.48 ▲9.66 | 56.61 ▲2.74 |
Dashboard /wp-admin | 3,059 ▲125 | 7.38 ▲1.38 | 164.00 ▲8.53 | 84.96 ▼36.92 |
Posts /wp-admin/edit.php | 2,850 ▲111 | 3.23 ▲0.54 | 86.25 ▲17.65 | 63.22 ▼28.28 |
Add New Post /wp-admin/post-new.php | 1,699 ▲16 | 22.50 ▲4.23 | 294.36 ▼101.79 | 77.59 ▼38.03 |
Media Library /wp-admin/upload.php | 1,923 ▲113 | 5.85 ▲0.74 | 175.80 ▲11.92 | 130.86 ▲1.62 |
License /wp-admin/admin.php?page=license | 1,501 | 2.61 | 84.37 | 63.06 |
Custom Setting /wp-admin/admin.php?page=foldio_page_of_admin | 2,330 | 2.74 | 91.95 | 79.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure failed, leaving 4 tables in the database
- wp_foldio360_store
- wp_foldio360_shortcode_setting
- wp_foldio360_licence_details
- wp_foldio360_images_list
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=foldio_page_of_admin
- > Notice in wp-content/plugins/foldio360/template/foldioEditor.php+494
Undefined index: post
SRP 50% from 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
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/foldio360/foldioImageList.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=foldio_page_of_admin
- > Network (severe)
wp-content/themes/twentytwentyone/js/foldio360.js?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=foldio_page_of_admin
- > Network (severe)
wp-content/themes/twentytwentyone/js/specificSetting360.js?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=foldio_page_of_admin
- > Network (severe)
wp-content/themes/twentytwentyone/js/shortCodeSpecificSetting.js?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=foldio_page_of_admin
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31592 "jQuery.Deferred exception: jQuery(...).sortable is not a function" "TypeError: jQuery(...).sortable is not a function\n at HTMLDocument.init (/wp-content/plugins/foldio360//js/foldio360.js?ver=5.8.1:27:46)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30340)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=foldio_page_of_admin
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31702 Uncaught TypeError: jQuery(...).sortable is not a function
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
10 plugin tags: woocommerce image rotation, 360 degree, foldio360, rotation plugin, product rotate...
foldio360/foldio360.php Passed 13 tests
The main file in "foldio-plugin" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
125 characters long description:
Its a 360 product image rotation plugin use for WooCommerce applications, user can ulooad and show images on product section.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected28,124 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 9 | 0 | 1 | 16,867 |
PHP | 11 | 633 | 858 | 5,677 |
JavaScript | 7 | 436 | 690 | 3,402 |
CSS | 5 | 178 | 241 | 1,575 |
PO File | 2 | 134 | 215 | 295 |
Pascal | 1 | 47 | 1,560 | 283 |
Markdown | 1 | 16 | 0 | 25 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
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 | 64 | |
▷ Named functions | 64 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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.15MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/360-white.png | 2.99KB | 1.40KB | ▼ 53.05% |
images/checked.png | 4.10KB | 0.47KB | ▼ 88.50% |
images/editor_menu_load360.png | 0.65KB | 0.37KB | ▼ 43.37% |
images/rotate_icon_a@3x.png | 5.51KB | 2.78KB | ▼ 49.65% |
images/left-bottom.png | 1.67KB | 1.08KB | ▼ 35.63% |