Benchmarks
Plugin footprint 83% from 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▲1.06ms] Passed 4 tests
Server-side resources used by Smartarget FAQ
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 47.04 ▲8.45 |
Dashboard /wp-admin | 3.37 ▲0.06 | 49.63 ▼3.36 |
Posts /wp-admin/edit.php | 3.49 ▲0.12 | 45.23 ▲0.03 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 90.32 ▲5.21 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 35.51 ▲2.36 |
Smartarget FAQ /wp-admin/options-general.php?page=smartarget_faq | 3.26 | 30.65 |
Server storage [IO: ▲3.84MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Smartarget FAQ: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲160 | 21.36 ▲7.00 | 9.20 ▲7.50 | 49.34 ▲5.92 |
Dashboard /wp-admin | 2,199 ▲22 | 10.55 ▲5.02 | 179.65 ▲76.37 | 42.55 ▼1.51 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 7.25 ▲5.30 | 111.86 ▲77.38 | 40.61 ▲7.59 |
Add New Post /wp-admin/post-new.php | 1,704 ▲178 | 30.08 ▲7.06 | 667.86 ▼28.80 | 65.22 ▲4.18 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 9.65 ▲5.46 | 198.31 ▲86.91 | 44.23 ▼5.31 |
Smartarget FAQ /wp-admin/options-general.php?page=smartarget_faq | 2,541 | 10.64 | 226.32 | 131.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
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 everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/smartarget-faq-floating-button/public/partials/smartarget-faq-public-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/smartarget-faq-floating-button/admin/partials/smartarget-faq-admin-display.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: support automatization, faq, frequently asked questions, customer support
smartarget-faq-floating-button/smartarget-faq.php 85% from 13 tests
The main PHP file in "Smartarget FAQ" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("smartarget-faq-floating-button.php" instead of "smartarget-faq.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
No dangerous file extensions were detected868 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 5 | 4,369 | 642 |
PHP | 12 | 130 | 522 | 225 |
CSS | 2 | 0 | 4 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There were not PNG files found in your plugin