84% blog-filter

Code Review | Blog Filter - Advanced Post Filtering with Categories Or Tags, Post Portfolio Gallery, Blog Design Template, Post Layout

WordPress plugin Blog Filter - Advanced Post Filtering with Categories Or Tags, Post Portfolio Gallery, Blog Design Template, Post Layout scored84%from 54 tests.

About plugin

  • Plugin page: blog-filter
  • Plugin version: 1.5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 8, 2018
  • Latest release: Nov 30, 2023
  • Number of updates: 101
  • Update frequency: every 20.5 days
  • Top authors: awordpresslife (100%)

Code review

54 tests

User reviews

65 reviews

Install metrics

8,000+ active /224,177 total downloads

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.08MB] [CPU: ▼6.40ms] Passed 4 tests

An overview of server-side resources used by Blog Filter - Advanced Post Filtering with Categories Or Tags, Post Portfolio Gallery, Blog Design Template, Post Layout
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1035.12 ▼1.89
Dashboard /wp-admin3.43 ▲0.0846.61 ▼13.72
Posts /wp-admin/edit.php3.48 ▲0.1252.15 ▲4.23
Add New Post /wp-admin/post-new.php5.95 ▲0.0686.57 ▼14.21
Media Library /wp-admin/upload.php3.29 ▲0.0642.10 ▲7.88
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins3.3637.80
Blog Filters Settings /wp-admin/edit.php?page=blog-filter-settings-page3.4738.07

Server storage [IO: ▲4.50MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 77 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Blog Filter - Advanced Post Filtering with Categories Or Tags, Post Portfolio Gallery, Blog Design Template, Post Layout: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲13913.70 ▼0.638.37 ▲6.6437.02 ▼2.56
Dashboard /wp-admin2,237 ▲595.54 ▼0.1693.37 ▼24.2285.68 ▲39.80
Posts /wp-admin/edit.php2,154 ▲542.02 ▲0.0240.50 ▲3.4441.81 ▲3.91
Add New Post /wp-admin/post-new.php1,721 ▲19522.55 ▼0.62676.49 ▲34.8842.71 ▼22.25
Media Library /wp-admin/upload.php1,447 ▲504.13 ▼0.0798.07 ▼0.8580.21 ▲38.93
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins1,0492.0326.4432.91
Blog Filters Settings /wp-admin/edit.php?page=blog-filter-settings-page2,8423.1574.7647.86

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/blog-filter/class-tgm-plugin-activation.php:2129

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: masonry layout, post template, post filter, post layout, blog template...

blog-filter/blog-filter.php Passed 13 tests

"Blog Filter - Advanced Post Filtering with Categories Or Tags, Post Portfolio Gallery, Blog Design Template, Post Layout" version 1.5.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
68 characters long description:
Blog / Post Filter and Blog / Post Gird layout Plugin For WordPress.

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
Good job! No executable or dangerous file extensions detected36,960 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
CSS84096,81617,707
SVG40126,031
PO File162,5442,7195,861
JavaScript66011,1803,873
PHP55651,6663,488

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity42.25
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.06
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods109
▷ Static methods54.59%
▷ Public methods8477.06%
▷ Protected methods2522.94%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants666.67%
▷ Class constants333.33%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/tag.png2.93KB2.65KB▼ 9.56%
img/cat.png1.30KB1.11KB▼ 14.80%
img/categori-icon.png19.33KB7.78KB▼ 59.75%
img/category-tree-icon.png1.86KB0.65KB▼ 64.79%