Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.50MB] [CPU: ▲0.32ms] Passed 4 tests
This is a short check of server-side resources used by Filter & Grids
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.54 | 45.06 ▲9.26 |
Dashboard /wp-admin | 3.84 ▲0.53 | 47.07 ▲0.50 |
Posts /wp-admin/edit.php | 3.89 ▲0.53 | 50.70 ▲2.29 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.49 | 92.48 ▼5.10 |
Media Library /wp-admin/upload.php | 3.70 ▲0.47 | 35.96 ▲3.57 |
Add New /wp-admin/post-new.php?post_type=ymc_filters | 4.15 | 54.21 |
Filter & Grids /wp-admin/edit.php?post_type=ymc_filters | 3.80 | 37.94 |
Server storage [IO: ▲4.25MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 112 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Filter & Grids
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,012 ▲250 | 14.05 ▼0.65 | 10.36 ▲8.72 | 46.23 ▲7.27 |
Dashboard /wp-admin | 2,299 ▲122 | 5.87 ▲0.24 | 94.18 ▼5.84 | 42.24 ▲1.12 |
Posts /wp-admin/edit.php | 2,161 ▲61 | 2.34 ▲0.37 | 43.19 ▲2.74 | 35.03 ▼3.37 |
Add New Post /wp-admin/post-new.php | 1,567 ▲41 | 23.48 ▲0.17 | 606.05 ▼9.69 | 33.57 ▼15.82 |
Media Library /wp-admin/upload.php | 1,459 ▲59 | 4.51 ▲0.34 | 98.66 ▼0.56 | 40.78 ▼1.23 |
Add New /wp-admin/post-new.php?post_type=ymc_filters | 6,203 | 4.53 | 136.73 | 132.25 |
Filter & Grids /wp-admin/edit.php?post_type=ymc_filters | 1,122 | 2.30 | 37.55 | 29.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: ymc_popup_settings in wp-content/plugins/ymc-smart-filter/includes/core/frontend/layouts/popup/popup-layout.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ymc-smart-filter/includes/core/frontend/layouts/popup/popup-layout.php:19
- > PHP Notice
Undefined variable: ymc_popup_settings in wp-content/plugins/ymc-smart-filter/includes/core/frontend/layouts/popup/popup-layout.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ymc-smart-filter/includes/core/frontend/layouts/popup/popup-layout.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ymc-smart-filter/includes/core/frontend/layouts/popup/popup-layout.php on line 6
- > PHP Notice
Undefined variable: ymc_popup_settings in wp-content/plugins/ymc-smart-filter/includes/core/frontend/layouts/popup/popup-layout.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/ymc-smart-filter/includes/core/util/icons.php:9
- > PHP Notice
Undefined variable: ymc_popup_settings in wp-content/plugins/ymc-smart-filter/includes/core/frontend/layouts/popup/popup-layout.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ymc-smart-filter/includes/core/frontend/layouts/popup/popup-layout.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ymc-smart-filter/includes/core/frontend/layouts/popup/popup-layout.php on line 5
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% 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: You are using too many tags: 11 tag instead of maximum 10
ymc-smart-filter/ymc-smart-filters.php 92% from 13 tests
"Filter & Grids" version 2.6.20's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ymc-smart-filter.php" instead of "ymc-smart-filters.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin24,194 lines of code in 87 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 15 | 1 | 0 | 9,791 |
Sass | 21 | 644 | 53 | 6,969 |
PHP | 42 | 1,520 | 419 | 4,845 |
JavaScript | 5 | 588 | 107 | 2,009 |
Markdown | 1 | 167 | 0 | 577 |
CSS | 3 | 1 | 28 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 22.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 105 | |
▷ Static methods | 2 | 1.90% |
▷ Public methods | 102 | 97.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 2.86% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.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
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/assets/images/YMC-logos.png | 31.70KB | 10.33KB | ▼ 67.39% |
includes/assets/images/logo.png | 4.88KB | 0.78KB | ▼ 84.05% |