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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▲0.25 | 35.68 ▲14.11 |
Dashboard /wp-admin | 3.25 ▲0.19 | 43.89 ▲7.06 |
Posts /wp-admin/edit.php | 3.30 ▲0.19 | 44.27 ▼21.58 |
Add New Post /wp-admin/post-new.php | 5.54 ▲0.11 | 87.28 ▼582.57 |
Media Library /wp-admin/upload.php | 3.13 ▲0.13 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,879 ▲283 | 17.32 ▲1.78 | 16.18 ▲5.69 | 45.27 ▼2.15 |
Dashboard /wp-admin | 3,023 ▲90 | 6.75 ▲0.60 | 160.18 ▲1.16 | 112.51 ▲0.22 |
Posts /wp-admin/edit.php | 2,792 ▲53 | 3.01 ▲0.31 | 65.20 ▼5.99 | 108.12 ▲17.81 |
Add New Post /wp-admin/post-new.php | 1,730 ▲226 | 21.41 ▲2.85 | 380.79 ▲20.91 | 123.18 ▲5.07 |
Media Library /wp-admin/upload.php | 1,863 ▲56 | 5.42 ▲0.36 | 138.62 ▼5.87 | 118.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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 123 | 50 | 909 |
CSS | 9 | 17 | 7 | 537 |
JavaScript | 11 | 40 | 7 | 502 |
LESS | 7 | 1 | 3 | 379 |
Sass | 1 | 0 | 0 | 172 |
JSON | 1 | 0 | 0 | 16 |
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 code | 0.28 |
Average class complexity | 3.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 4 | 7.14% |
▷ Public methods | 56 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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