99% woo-ajax-filter

Code Review | Woo Ajax Filter

WordPress plugin Woo Ajax Filter scored 99% from 54 tests.

About plugin

  • Plugin page: woo-ajax-filter
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3+
  • WordPress version: 5.8.1
  • First release: Nov 10, 2016
  • Latest release: Nov 10, 2016
  • Number of updates: 15
  • Update frequency: every 8.9 days
  • Top authors: coffee4dev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 739 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼148.09ms] Passed 4 tests

A check of server-side resources used by Woo Ajax Filter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.97 ▲0.2535.68 ▲14.11
Dashboard /wp-admin3.25 ▲0.1943.89 ▲7.06
Posts /wp-admin/edit.php3.30 ▲0.1944.27 ▼21.58
Add New Post /wp-admin/post-new.php5.54 ▲0.1187.28 ▼582.57
Media Library /wp-admin/upload.php3.13 ▲0.1335.02 ▲4.75

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 77 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Woo Ajax Filter
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,879 ▲28317.32 ▲1.7816.18 ▲5.6945.27 ▼2.15
Dashboard /wp-admin3,023 ▲906.75 ▲0.60160.18 ▲1.16112.51 ▲0.22
Posts /wp-admin/edit.php2,792 ▲533.01 ▲0.3165.20 ▼5.99108.12 ▲17.81
Add New Post /wp-admin/post-new.php1,730 ▲22621.41 ▲2.85380.79 ▲20.91123.18 ▲5.07
Media Library /wp-admin/upload.php1,863 ▲565.42 ▲0.36138.62 ▼5.87118.59 ▲1.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tested up to: Invalid plugin version format
  • Tags: Please reduce the number of tags, currently 34 tag instead of maximum 10
The official readme.txt might help

woo-ajax-filter/c4d-woo-ajax-filter.php 92% from 13 tests

The main file in "Woo Ajax Filter" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-ajax-filter.php" instead of "c4d-woo-ajax-filter.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
Everything looks great! No dangerous files found in this plugin2,515 lines of code in 66 files:
LanguageFilesBlank linesComment linesLines of code
PHP3712350909
CSS9177537
JavaScript11407502
LESS713379
Sass100172
JSON10016

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity3.32
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces15
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods56
▷ Static methods47.14%
▷ Public methods56100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected