Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.41ms] Passed 4 tests
Server-side resources used by Step-by-step Question Web39
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.17 ▼1.22 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.63 ▼3.14 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.51 ▲3.10 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.92 ▼0.96 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.49 ▼0.30 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Step-by-step Question Web39
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.22 ▼1.08 | 1.68 ▼0.00 | 41.33 ▲1.65 |
Dashboard /wp-admin | 2,206 ▲17 | 5.82 ▲0.84 | 96.35 ▼9.58 | 40.13 ▼1.32 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.00 | 39.45 ▼0.55 | 34.26 ▲0.15 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.21 ▲5.12 | 638.77 ▼6.84 | 57.10 ▲0.52 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▼0.14 | 97.84 ▲1.70 | 42.24 ▼0.18 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 40× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'W39SQ_PLUGIN_DIR/classes/W39SQQuestion.php' (include_path='.:/usr/share/php') in wp-content/plugins/web39-step-by-step-questionnaire/classes/W39SQQuestions.php on line 3
- > PHP Warning
require_once(W39SQ_PLUGIN_DIR/classes/W39SQLoadShort.php): failed to open stream: No such file or directory in wp-content/plugins/web39-step-by-step-questionnaire/includes/controller.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'W39SQ_PLUGIN_DIR/classes/W39SQ.php' (include_path='.:/usr/share/php') in wp-content/plugins/web39-step-by-step-questionnaire/admin/includes/W39SQTableList.php on line 2
- > PHP Warning
Use of undefined constant W39SQ_PLUGIN_DIR - assumed 'W39SQ_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/web39-step-by-step-questionnaire/classes/W39SQQuestions.php on line 3
- > PHP Warning
require_once(W39SQ_PLUGIN_DIR/classes/W39SQ.php): failed to open stream: No such file or directory in wp-content/plugins/web39-step-by-step-questionnaire/admin/includes/W39SQTableList.php on line 2
- > PHP Warning
Use of undefined constant W39SQ_PLUGIN_DIR - assumed 'W39SQ_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/web39-step-by-step-questionnaire/includes/controller.php on line 3
- > PHP Warning
require_once(W39SQ_PLUGIN_DIR/classes/W39SQ.php): failed to open stream: No such file or directory in wp-content/plugins/web39-step-by-step-questionnaire/classes/W39SQRepository.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'W39SQ_PLUGIN_DIR/classes/W39SQAdmin.php' (include_path='.:/usr/share/php') in wp-content/plugins/web39-step-by-step-questionnaire/classes/W39SQLastAnswer.php on line 4
- > PHP Warning
Use of undefined constant W39SQ_PLUGIN_DIR - assumed 'W39SQ_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/web39-step-by-step-questionnaire/classes/W39SQRepository.php on line 4
- > PHP Warning
Use of undefined constant W39SQ_PLUGIN_DIR - assumed 'W39SQ_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/web39-step-by-step-questionnaire/admin/includes/W39SQTableList.php on line 2
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Вариант слайда с выбором единственного ответа.), #2 (Вариант слайда со множественным выбором ответов (стоимость суммируется)), #3 (Последний этап (слайд) с контактными данными клиентами и кнопкой отправки), #4 (Сообщение о том, что заявка клиента выполнена успешно)
web39-step-by-step-questionnaire/index.php 92% from 13 tests
The main file in "Step-by-step Question Web39" v. 0.9.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("web39-step-by-step-questionnaire.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected3,694 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 327 | 453 | 2,474 |
JavaScript | 4 | 41 | 38 | 543 |
CSS | 2 | 44 | 60 | 433 |
PO File | 2 | 99 | 111 | 244 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 13.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 108 | |
▷ Static methods | 28 | 25.93% |
▷ Public methods | 73 | 67.59% |
▷ Protected methods | 20 | 18.52% |
▷ Private methods | 15 | 13.89% |
Functions | 20 | |
▷ Named functions | 17 | 85.00% |
▷ Anonymous functions | 3 | 15.00% |
Constants | 48 | |
▷ Global constants | 6 | 12.50% |
▷ Class constants | 42 | 87.50% |
▷ Public constants | 40 | 95.24% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
w39sq.png | 117.58KB | 53.02KB | ▼ 54.90% |