Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼141.29ms] Passed 4 tests
Analyzing server-side resources used by CBX Custom Taxonomy Filter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.01 ▲0.28 | 47.11 ▲26.33 |
Dashboard /wp-admin | 3.25 ▲0.19 | 51.15 ▲1.64 |
Posts /wp-admin/edit.php | 3.36 ▲0.25 | 48.80 ▲3.13 |
Add New Post /wp-admin/post-new.php | 5.61 ▲0.17 | 98.18 ▼565.33 |
Media Library /wp-admin/upload.php | 3.20 ▲0.19 | 37.17 ▼4.60 |
CBX Custom Tax Filter /wp-admin/options-general.php?page=customtaxfilterinadmin | 3.20 | 40.36 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 91 new files
Database: no new tables, 2 new options
New WordPress options |
---|
cbxcustomtaxfilterinadmin_tax_settings |
cbxcustomtaxfilterinadmin_tools |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CBX Custom Taxonomy Filter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲89 | 15.77 ▲0.21 | 8.11 ▼3.37 | 51.85 ▼4.39 |
Dashboard /wp-admin | 2,975 ▲44 | 5.94 ▼0.16 | 143.45 ▼33.12 | 122.79 ▲4.20 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.01 | 70.84 ▲1.93 | 93.15 ▼4.80 |
Add New Post /wp-admin/post-new.php | 1,503 ▼78 | 18.78 ▲1.32 | 389.80 ▼31.47 | 112.90 ▼11.87 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.01 ▼0.00 | 164.49 ▼9.34 | 125.03 ▼17.46 |
CBX Custom Tax Filter /wp-admin/options-general.php?page=customtaxfilterinadmin | 1,927 | 4.39 | 84.16 | 132.85 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 2 options in the database
- cbxcustomtaxfilterinadmin_tax_settings
- cbxcustomtaxfilterinadmin_tools
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: admin filter, custom taxonomy
custom-taxonomy-filter/customtaxfilterinadmin.php 85% from 13 tests
The main file in "CBX Custom Taxonomy Filter" v. 1.4.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("custom-taxonomy-filter.php" instead of "customtaxfilterinadmin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin12,224 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 65 | 2,523 | 722 | 9,608 |
Sass | 2 | 186 | 11 | 1,082 |
PHP | 9 | 280 | 417 | 1,056 |
CSS | 4 | 56 | 2 | 431 |
SVG | 3 | 0 | 2 | 47 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 21.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 6 | 11.76% |
▷ Public methods | 49 | 96.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.92% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon_move.png | 0.22KB | 0.22KB | ▼ 0.89% |