Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.44MB] [CPU: ▼115.72ms] Passed 4 tests
A check of server-side resources used by Highlight Sitewide Notice, Text, Button Menu
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 41.44 ▼1.62 |
Dashboard /wp-admin | 3.80 ▲0.37 | 47.45 ▼449.81 |
Posts /wp-admin/edit.php | 3.91 ▲0.55 | 47.69 ▼8.03 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.51 | 88.10 ▼3.40 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 41.90 ▲6.12 |
Support /wp-admin/admin.php?page=qcld-highlight-supports | 3.69 | 36.07 |
Highlight Menu /wp-admin/admin.php?page=qcld-btn-menu-settings | 3.69 | 36.54 |
Highlight Contents /wp-admin/admin.php?page=qcld-highlight | 3.69 | 36.40 |
Highlight Notice /wp-admin/admin.php?page=qcld-notice-settings | 3.74 | 42.24 |
Server storage [IO: ▲7.65MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 158 new files
Database: no new tables, 24 new options
New WordPress options |
---|
qcld_wp_notifications_enable |
widget_recent-posts |
qcld_wp_notifications_bg_color |
qcld_wp_notifications_text_align |
db_upgraded |
qcld_wp_notifications_banner_style |
qcld_wp_notifications_close_icon |
qcld_wp_notifications_action_button |
qcld_wp_notifications_button_text_align |
qcld_wp_notifications_btn_font_color |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Highlight Sitewide Notice, Text, Button Menu
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,976 ▲241 | 14.43 ▼0.19 | 5.64 ▲3.86 | 28.55 ▼17.95 |
Dashboard /wp-admin | 2,291 ▲120 | 5.58 ▼0.00 | 97.11 ▲11.40 | 40.28 ▼0.25 |
Posts /wp-admin/edit.php | 2,198 ▲98 | 2.67 ▲0.71 | 38.71 ▲3.37 | 37.01 ▲1.03 |
Add New Post /wp-admin/post-new.php | 1,613 ▲77 | 23.53 ▲5.19 | 701.20 ▲42.91 | 38.45 ▼24.44 |
Media Library /wp-admin/upload.php | 1,490 ▲96 | 5.04 ▲0.79 | 107.87 ▲6.13 | 49.27 ▲6.87 |
Support /wp-admin/admin.php?page=qcld-highlight-supports | 1,638 | 2.51 | 38.39 | 84.70 |
Highlight Menu /wp-admin/admin.php?page=qcld-btn-menu-settings | 1,552 | 3.03 | 61.77 | 32.59 |
Highlight Contents /wp-admin/admin.php?page=qcld-highlight | 2,106 | 3.49 | 58.69 | 37.82 |
Highlight Notice /wp-admin/admin.php?page=qcld-notice-settings | 2,198 | 6.46 | 141.14 | 97.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 24 options in the database
- qcld_wp_notifications_btn_font_color
- qcld_wp_notifications_call_action_text
- qcld_wp_notifications_banner_style
- qcld_wp_notifications_set_cookie
- qcld_wp_notifications_call_action_btn
- qcld_wp_notifications_text_align
- qcld_wp_notifications_call_action_link
- qcld_wp_notifications_banner_sticky
- qcld_wp_notifications_button_text_align
- qcld_wp_notifications_action_button
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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
The following issues need your attention
- 6× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/highlight/inc/button-menu/qcld-button-menu.php
- > /wp-content/plugins/highlight/inc/notice/qcld-project-notification.php
- > /wp-content/plugins/highlight/qc-project-highlight-asset.php
- > /wp-content/plugins/highlight/qc-project-highlight-shortcode.php
- > /wp-content/plugins/highlight/qc-project-highlight-main.php
- > /wp-content/plugins/highlight/qc-project-highlight-frameworks.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/highlight/qc-support-promo-page/class-qc-support-promo-page.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/highlight/qc-free-plugin-upgrade-notice.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: nav menu, notification bar, sitewide notice, menu shortcode, text highlight
highlight/qc-project-highlight-main.php 85% from 13 tests
The main PHP script in "Highlight Sitewide Notice, Text, Button Menu" version 1.6.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- 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
- Main file name: The principal plugin file should be the same as the plugin slug ("highlight.php" instead of "qc-project-highlight-main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin51,730 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 30 | 3,788 | 208 | 24,256 |
JavaScript | 13 | 3,240 | 2,175 | 14,121 |
SVG | 8 | 1 | 12 | 11,657 |
PHP | 9 | 595 | 110 | 1,696 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
43 PNG files occupy 0.99MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
qc-support-promo-page/images/logo (1).png | 9.74KB | 5.02KB | ▼ 48.48% |
qc-support-promo-page/images/icon-pack/service-05.png | 2.20KB | 1.44KB | ▼ 34.37% |
qc-support-promo-page/images/icon-pack/service-01.png | 2.46KB | 1.72KB | ▼ 30.01% |
qc-support-promo-page/images/icon-pack/service-03.png | 2.06KB | 1.36KB | ▼ 34.03% |
qc-support-promo-page/images/voice-widgets-for-wordPress.png | 57.47KB | 16.74KB | ▼ 70.87% |