Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.46MB] [CPU: ▲6.39ms] Passed 4 tests
A check of server-side resources used by Qi Blocks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.34 ▲1.87 | 53.49 ▲12.11 |
Dashboard /wp-admin | 4.64 ▲1.30 | 50.77 ▼8.36 |
Posts /wp-admin/edit.php | 4.69 ▲1.33 | 56.59 ▲13.02 |
Add New Post /wp-admin/post-new.php | 8.54 ▲2.65 | 111.09 ▲13.62 |
Media Library /wp-admin/upload.php | 4.57 ▲1.34 | 40.97 ▲8.79 |
Server storage [IO: ▲14.15MB] [DB: ▲0.04MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 424 new files
Database: no new tables, 8 new options
New WordPress options |
---|
qi_blocks_global_styles |
theysaidso_admin_options |
qi_blocks_cropped_images |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Qi Blocks
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲174 | 13.72 ▼0.99 | 9.58 ▲7.62 | 37.69 ▼5.67 |
Dashboard /wp-admin | 2,197 ▲22 | 5.56 ▼0.14 | 96.08 ▼24.94 | 79.33 ▲34.78 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 1.96 ▲0.02 | 44.28 ▲5.99 | 34.77 ▲1.59 |
Add New Post /wp-admin/post-new.php | 6,605 ▲5,079 | 40.34 ▲17.36 | 1,486.77 ▲796.65 | 49.90 ▼18.82 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.22 ▲0.03 | 100.00 ▲6.06 | 73.72 ▲33.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- qi_blocks_global_styles
- can_compress_scripts
- qi_blocks_cropped_images
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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 following issues need your attention
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/qi-blocks/inc/slider/templates/swiper-pag.php
- > /wp-content/plugins/qi-blocks/inc/slider/templates/parts/arrow-right.php
- > /wp-content/plugins/qi-blocks/inc/slider/templates/parts/arrow-left.php
- 161× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
include_once(QI_BLOCKS_INC_PATH/comments/class-qi-blocks-comments-rest-api.php): failed to open stream: No such file or directory in wp-content/plugins/qi-blocks/inc/comments/include.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function post_class() in wp-content/plugins/qi-blocks/inc/blocks/blog-list/variations/standard/layouts/standard.php:1
- > PHP Warning
include_once(): Failed opening 'QI_BLOCKS_INC_PATH/comments/class-qi-blocks-comments-rest-api.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/qi-blocks/inc/comments/include.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/qi-blocks/inc/admin/admin-pages/templates/footer.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/qi-blocks/inc/slider/templates/swiper-nav-outside.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/qi-blocks/inc/admin/admin-pages/templates/parts/footer-text.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_product_class() in wp-content/plugins/qi-blocks/inc/blocks/product-list/variations/info-below/layouts/info-below.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function qi_blocks_template_part() in wp-content/plugins/qi-blocks/inc/admin/admin-pages/sub-pages/widgets/templates/sidebar.php:3
- > PHP Warning
Use of undefined constant QI_BLOCKS_ADMIN_PATH - assumed 'QI_BLOCKS_ADMIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/qi-blocks/inc/admin/global-settings/include.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/qi-blocks/inc/admin/admin-pages/templates/parts/sidebar/social-instagram.php:20
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
qi-blocks/class-qi-blocks.php 92% from 13 tests
The main file in "Qi Blocks" v. 1.2.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("qi-blocks.php" instead of "class-qi-blocks.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin45,982 lines of code in 383 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 26,069 |
PHP | 179 | 1,480 | 1,063 | 18,459 |
SVG | 66 | 1 | 0 | 704 |
JavaScript | 82 | 94 | 49 | 696 |
CSS | 54 | 3 | 28 | 54 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 8.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 126.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 67 | |
▷ Abstract classes | 1 | 1.49% |
▷ Concrete classes | 66 | 98.51% |
▷ Final classes | 0 | 0.00% |
Methods | 295 | |
▷ Static methods | 62 | 21.02% |
▷ Public methods | 294 | 99.66% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.34% |
Functions | 81 | |
▷ Named functions | 64 | 79.01% |
▷ Anonymous functions | 17 | 20.99% |
Constants | 17 | |
▷ Global constants | 17 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
23 PNG files occupy 0.74MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/admin/admin-pages/assets/img/qi-blocks.png | 224.18KB | 56.27KB | ▼ 74.90% |
inc/admin/admin-pages/assets/img/help-center-icon.png | 2.03KB | 0.94KB | ▼ 53.62% |
inc/admin/admin-pages/sub-pages/setup-wizard/assets/img/wizard-step-5-bg.png | 65.22KB | 23.23KB | ▼ 64.38% |
assets/img/placeholder.png | 13.83KB | 7.13KB | ▼ 48.48% |
inc/admin/admin-pages/sub-pages/setup-wizard/assets/img/wizard-step-1-logo.png | 2.71KB | 1.93KB | ▼ 28.62% |