Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.14MB] [CPU: ▼138.13ms] Passed 4 tests
Analyzing server-side resources used by Portfolio Cat Filter Gtb Block
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲1.34 | 40.01 ▲15.78 |
Dashboard /wp-admin | 4.33 ▲1.27 | 59.52 ▲14.69 |
Posts /wp-admin/edit.php | 4.37 ▲1.25 | 60.81 ▲18.46 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.80 | 74.01 ▼590.52 |
Media Library /wp-admin/upload.php | 4.24 ▲1.24 | 38.96 ▲7.54 |
Server storage [IO: ▲8.60MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 567 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Portfolio Cat Filter Gtb Block
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,141 ▲545 | 21.51 ▲5.91 | 16.30 ▲6.34 | 51.65 ▲4.53 |
Dashboard /wp-admin | 3,320 ▲386 | 10.42 ▲4.53 | 214.10 ▲63.10 | 124.10 ▲9.10 |
Posts /wp-admin/edit.php | 3,113 ▲374 | 6.79 ▲4.10 | 118.80 ▲46.87 | 92.39 ▼7.07 |
Add New Post /wp-admin/post-new.php | 2,128 ▲626 | 22.08 ▲3.28 | 431.66 ▲25.27 | 107.02 ▼11.30 |
Media Library /wp-admin/upload.php | 1,962 ▲152 | 7.12 ▲2.12 | 153.16 ▼5.89 | 126.11 ▲0.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% 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 0% from 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/portfolio-cat-filter-gtb-block/carbon-fields/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 211× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Carbon_Fields\\Pimple\\ServiceProviderInterface' not found in wp-content/plugins/portfolio-cat-filter-gtb-block/carbon-fields/vendor/htmlburger/carbon-fields/core/Provider/Container_Condition_Provider.php:10
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/portfolio-cat-filter-gtb-block/carbon-fields/vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/portfolio-cat-filter-gtb-block/carbon-fields/vendor/htmlburger/carbon-fields/core/Field/Broken_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/portfolio-cat-filter-gtb-block/carbon-fields/vendor/htmlburger/carbon-fields/core/Container/Condition/Term_Level_Condition.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Scripts_Field' not found in wp-content/plugins/portfolio-cat-filter-gtb-block/carbon-fields/vendor/htmlburger/carbon-fields/core/Field/Header_Scripts_Field.php:9
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Select_Field' not found in wp-content/plugins/portfolio-cat-filter-gtb-block/carbon-fields/vendor/htmlburger/carbon-fields/core/Field/Gravity_Form_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/portfolio-cat-filter-gtb-block/carbon-fields/vendor/composer/installers/src/Composer/Installers/HuradInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/portfolio-cat-filter-gtb-block/carbon-fields/vendor/htmlburger/carbon-fields/core/Container/Comment_Meta_Container.php:13
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/portfolio-cat-filter-gtb-block/carbon-fields/vendor/htmlburger/carbon-fields/core/Service/Revisions_Service.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Fulfillable\\Translator\\Translator' not found in wp-content/plugins/portfolio-cat-filter-gtb-block/carbon-fields/vendor/htmlburger/carbon-fields/core/Container/Fulfillable/Translator/Array_Translator.php:10
- > PHP Fatal error
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, but this is not an exhaustive test
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
4 plugin tags: education, portfolio, photography, entertainment
portfolio-cat-filter-gtb-block/sara-portfolio-cat-filter.php 85% from 13 tests
The main PHP file in "Portfolio Cat Filter Gtb Block" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("portfolio-cat-filter-gtb-block.php" instead of "sara-portfolio-cat-filter.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin30,108 lines of code in 513 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 174 | 5,195 | 8,458 | 12,953 |
PHP | 244 | 2,806 | 6,977 | 10,619 |
PO File | 26 | 819 | 1,020 | 2,202 |
Sass | 48 | 338 | 0 | 1,765 |
CSS | 9 | 345 | 1,152 | 1,745 |
JSON | 5 | 0 | 0 | 635 |
YAML | 3 | 30 | 3 | 118 |
Markdown | 4 | 26 | 0 | 71 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 5.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 219 | |
▷ Abstract classes | 12 | 5.48% |
▷ Concrete classes | 207 | 94.52% |
▷ Final classes | 1 | 0.48% |
Methods | 986 | |
▷ Static methods | 91 | 9.23% |
▷ Public methods | 778 | 78.90% |
▷ Protected methods | 199 | 20.18% |
▷ Private methods | 9 | 0.91% |
Functions | 113 | |
▷ Named functions | 26 | 23.01% |
▷ Anonymous functions | 87 | 76.99% |
Constants | 34 | |
▷ Global constants | 7 | 20.59% |
▷ Class constants | 27 | 79.41% |
▷ Public constants | 27 | 100.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 images were found in this plugin