Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▼2.55ms] Passed 4 tests
Server-side resources used by Fancy Filter - Category based filter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 45.79 ▲6.75 |
Dashboard /wp-admin | 3.73 ▲0.42 | 50.40 ▲0.84 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 46.63 ▼2.77 |
Add New Post /wp-admin/post-new.php | 6.43 ▲0.54 | 87.69 ▼10.02 |
Media Library /wp-admin/upload.php | 3.59 ▲0.35 | 37.14 ▲1.75 |
Add New Portfolio /wp-admin/post-new.php?post_type=fancyfilter | 6.42 | 84.92 |
Settings /wp-admin/edit.php?post_type=fancyfilter&page=fancyfilter_settings | 3.68 | 39.57 |
Portfolio Category /wp-admin/edit-tags.php?taxonomy=fl_portfolio&post_type=fancyfilter | 3.58 | 35.67 |
All Portfolios /wp-admin/edit.php?post_type=fancyfilter | 3.63 | 39.21 |
How It Works /wp-admin/edit.php?post_type=fancyfilter&page=how_it_works | 3.55 | 33.75 |
All Created shortcode /wp-admin/edit.php?post_type=morefilter | 3.63 | 39.55 |
Server storage [IO: ▲3.70MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 110 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Fancy Filter - Category based filter: 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 / | 2,883 ▲148 | 14.12 ▼0.27 | 1.62 ▼0.28 | 44.90 ▲0.31 |
Dashboard /wp-admin | 2,281 ▲98 | 5.69 ▲0.78 | 112.85 ▲2.83 | 39.14 ▼4.16 |
Posts /wp-admin/edit.php | 2,145 ▲56 | 2.31 ▲0.32 | 37.18 ▲0.85 | 34.48 ▼0.48 |
Add New Post /wp-admin/post-new.php | 6,371 ▲4,838 | 26.23 ▲3.23 | 934.07 ▲261.94 | 63.97 ▲8.29 |
Media Library /wp-admin/upload.php | 1,461 ▲76 | 4.76 ▲0.57 | 91.43 ▼8.93 | 40.48 ▼0.83 |
Add New Portfolio /wp-admin/post-new.php?post_type=fancyfilter | 6,370 | 19.41 | 868.65 | 43.27 |
Settings /wp-admin/edit.php?post_type=fancyfilter&page=fancyfilter_settings | 3,727 | 3.59 | 138.23 | 128.87 |
Portfolio Category /wp-admin/edit-tags.php?taxonomy=fl_portfolio&post_type=fancyfilter | 1,345 | 2.42 | 31.33 | 27.15 |
All Portfolios /wp-admin/edit.php?post_type=fancyfilter | 1,117 | 2.57 | 38.17 | 30.64 |
How It Works /wp-admin/edit.php?post_type=fancyfilter&page=how_it_works | 1,130 | 2.32 | 27.81 | 42.05 |
All Created shortcode /wp-admin/edit.php?post_type=morefilter | 1,117 | 2.58 | 37.25 | 27.75 |
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
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% 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 0% 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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/fancy-fiter/includes/helper/features.php
- 34× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant FANCYFILTER_URL - assumed 'FANCYFILTER_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/fancy-fiter/includes/helper/features.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/fancy-fiter/metaData/FancyMetaExtra/BlogData.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fancy-fiter/metaData/class-fancy_previewlink.php:21
- > PHP Warning
Use of undefined constant FANCYFILTER_URL - assumed 'FANCYFILTER_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/fancy-fiter/includes/helper/features.php on line 69
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fancy-fiter/metaData/class-fancy_productMetadata.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fancy-fiter/metaData/class-fancy_portfolio_Metada.php:22
- > PHP Warning
Use of undefined constant FANCYFILTER_URL - assumed 'FANCYFILTER_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/fancy-fiter/includes/helper/features.php on line 61
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fancy-fiter/includes/Class/class-fancifilter-howto-use.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/fancy-fiter/includes/extra/PortfolioCssdata.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fancy-fiter/includes/Class/class-fancyfilter_permalink.php:14
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
fancy-fiter/fancy-filter.php 85% from 13 tests
"Fancy Filter - Category based filter" version 1.0.6'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: Name the main plugin file the same as the plugin slug ("fancy-fiter.php" instead of "fancy-filter.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin5,214 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 927 | 536 | 3,221 |
CSS | 4 | 265 | 4 | 1,502 |
JavaScript | 7 | 78 | 258 | 475 |
SVG | 7 | 2 | 0 | 16 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 11.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 2 | 2.67% |
▷ Public methods | 71 | 94.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.33% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/2cl-min.png | 0.43KB | 0.43KB | 0.00% |
assets/img/placeholder.png | 6.00KB | 5.03KB | ▼ 16.19% |
assets/admin/img/play.png | 2.79KB | 2.25KB | ▼ 19.17% |
assets/img/next.png | 1.32KB | 1.58KB | 0.00% |
assets/img/logo.png | 7.24KB | 2.88KB | ▼ 60.27% |