Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/shop-ajax-tags-dropdown/shop-ajax-tags.php+133
Function create_function() is deprecated
Server metrics [RAM: ▼1.89MB] [CPU: ▼195.25ms] Passed 4 tests
Server-side resources used by Shop Ajax Tags Dropdown
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.74 ▼1.09 | 5.18 ▼26.75 |
Dashboard /wp-admin | 1.76 ▼1.29 | 4.56 ▼43.33 |
Posts /wp-admin/edit.php | 1.76 ▼1.35 | 7.02 ▼40.74 |
Add New Post /wp-admin/post-new.php | 1.76 ▼3.67 | 6.77 ▼668.26 |
Media Library /wp-admin/upload.php | 1.76 ▼1.24 | 7.34 ▼28.67 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_shopajaxtagsdropdownwidget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Shop Ajax Tags Dropdown
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,707 ▲70 | 16.42 ▲0.84 | 12.75 ▲1.34 | 51.66 ▲3.24 |
Dashboard /wp-admin | 2,967 ▲33 | 5.93 ▼0.23 | 164.31 ▼8.89 | 126.86 ▲14.85 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.01 | 65.40 ▼4.03 | 97.12 ▼1.79 |
Add New Post /wp-admin/post-new.php | 1,615 ▼68 | 21.50 ▲2.82 | 289.91 ▼129.36 | 105.34 ▼0.06 |
Media Library /wp-admin/upload.php | 1,810 ▲6 | 5.04 ▲0.02 | 153.50 ▼98.50 | 132.54 ▼26.64 |
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
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/shop-ajax-tags-dropdown/shop-ajax-tags.php+133
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_shopajaxtagsdropdownwidget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/shop-ajax-tags-dropdown/shop-ajax-tags.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: woocommerce, dropdown, tags, widget
shop-ajax-tags-dropdown/shop-ajax-tags.php 92% from 13 tests
The main PHP file in "Shop Ajax Tags Dropdown" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("shop-ajax-tags-dropdown.php" instead of "shop-ajax-tags.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
Everything looks great! No dangerous files found in this plugin100 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 19 | 15 | 100 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 46.72KB | 15.62KB | ▼ 66.57% |
assets/screenshot-1.png | 65.73KB | 24.89KB | ▼ 62.13% |