89% category-ajax-filter

Code Review | Category Ajax Filter

WordPress plugin Category Ajax Filter scored89%from 54 tests.

About plugin

  • Plugin page: category-ajax-filter
  • Plugin version: 2.7.2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Oct 31, 2020
  • Latest release: Jun 20, 2023
  • Number of updates: 283
  • Update frequency: every 3.4 days
  • Top authors: trustyplugins (100%)

Code review

54 tests

User reviews

140 reviews

Install metrics

8,000+ active /109,389 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.40ms] Passed 4 tests

Analyzing server-side resources used by Category Ajax Filter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.62 ▼8.57
Dashboard /wp-admin3.37 ▲0.0648.88 ▲1.90
Posts /wp-admin/edit.php3.48 ▲0.1342.91 ▼6.08
Add New Post /wp-admin/post-new.php5.95 ▲0.0778.25 ▼16.85
Media Library /wp-admin/upload.php3.29 ▲0.0637.47 ▲5.10
Category Filter /wp-admin/edit.php?post_type=caf_posts3.3435.05
Add New /wp-admin/post-new.php?post_type=caf_posts3.4941.73

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 158 new files
Database: no new tables, 7 new options
New WordPress options
tc_caf_plugin_version
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Category Ajax Filter
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.38 ▲0.031.69 ▲0.0439.88 ▼4.54
Dashboard /wp-admin2,218 ▲505.56 ▼0.0289.82 ▼1.7537.71 ▼5.59
Posts /wp-admin/edit.php2,129 ▲261.98 ▼0.0233.73 ▼9.7031.19 ▼6.07
Add New Post /wp-admin/post-new.php1,548 ▲2223.21 ▲0.01682.68 ▲39.5871.74 ▲15.24
Media Library /wp-admin/upload.php1,426 ▲324.18 ▲0.02108.35 ▲10.0549.26 ▲7.47
Category Filter /wp-admin/edit.php?post_type=caf_posts1,1262.4937.0862.34
Add New /wp-admin/post-new.php?post_type=caf_posts3,8684.26122.09134.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 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 Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Screenshots: Add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png)
The official readme.txt is a good inspiration

category-ajax-filter/category-ajax-filter.php 92% from 13 tests

The main PHP file in "Category Ajax Filter" ver. 2.7.2.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 172 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin42,132 lines of code in 96 files:
LanguageFilesBlank linesComment linesLines of code
CSS302,91910619,648
SVG80011,308
JavaScript102,1071,7338,074
PHP48275943,102

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity9.36
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods66
▷ Static methods00.00%
▷ Public methods66100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/full-logo.png43.16KB16.32KB▼ 62.19%
admin/images/logo-icon.png3.39KB2.39KB▼ 29.68%