Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.17ms] Passed 4 tests
An overview of server-side resources used by YITH WooCommerce Ajax Product Filter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 35.11 ▼5.46 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.34 ▼5.10 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.57 ▼1.40 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 95.24 ▼4.72 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 34.26 ▲1.33 |
Server storage [IO: ▲5.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 452 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
yit_recently_activated |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for YITH WooCommerce Ajax Product Filter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲49 | 14.56 ▲0.22 | 1.70 ▼0.34 | 36.39 ▼6.88 |
Dashboard /wp-admin | 2,204 ▲27 | 5.63 ▲0.03 | 95.39 ▼6.42 | 42.59 ▼3.56 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.02 ▲0.02 | 40.01 ▼0.54 | 38.26 ▲0.72 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.21 ▼0.44 | 664.62 ▲37.04 | 52.32 ▲10.71 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.21 ▲0.02 | 96.25 ▼2.27 | 43.16 ▲0.81 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- yit_recently_activated
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/yith-woocommerce-ajax-navigation/plugin-options/preset-options.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function YITH_WCAN_Query() in wp-content/plugins/yith-woocommerce-ajax-navigation/plugin-options/filter-options.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/yith-woocommerce-ajax-navigation/plugin-options/seo-options.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/yith-woocommerce-ajax-navigation/plugin-options/general-options.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/yith-woocommerce-ajax-navigation/plugin-options/legacy-options.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Too many tags (37 tag instead of maximum 10); only the first 5 tags are used in your directory listing
yith-woocommerce-ajax-navigation/init.php 77% from 13 tests
The principal PHP file in "YITH WooCommerce Ajax Product Filter" v. 4.28.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("yith-woocommerce-ajax-navigation.php" instead of "init.php")
- Requires at least: Required version does not match the one declared in readme.txt ("6.2" instead of "8.1")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 419 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin69,748 lines of code in 380 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 220 | 4,583 | 9,474 | 22,353 |
JavaScript | 74 | 2,551 | 1,474 | 16,453 |
PO File | 14 | 5,129 | 9,407 | 12,144 |
CSS | 21 | 1,740 | 274 | 10,966 |
Sass | 33 | 934 | 57 | 4,782 |
SVG | 16 | 0 | 2 | 2,988 |
XML | 2 | 12 | 9 | 62 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 42.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 336.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 88.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 2 | 3.77% |
▷ Concrete classes | 51 | 96.23% |
▷ Final classes | 0 | 0.00% |
Methods | 764 | |
▷ Static methods | 115 | 15.05% |
▷ Public methods | 654 | 85.60% |
▷ Protected methods | 88 | 11.52% |
▷ Private methods | 22 | 2.88% |
Functions | 197 | |
▷ Named functions | 178 | 90.36% |
▷ Anonymous functions | 19 | 9.64% |
Constants | 20 | |
▷ Global constants | 17 | 85.00% |
▷ Class constants | 3 | 15.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
34 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin-fw/assets/images/sidebar-left.png | 0.95KB | 0.11KB | ▼ 87.91% |
assets/images/checkbox_sprite.png | 1.05KB | 0.22KB | ▼ 79.33% |
plugin-fw/assets/images/sleep.png | 0.11KB | 0.11KB | ▼ 5.13% |
plugin-fw/assets/css/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.08KB | 0.08KB | 0.00% |
plugin-fw/assets/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |