Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/konfirmi/vendor/leafo/scssphp/src/Compiler.php+3749
Trying to access array offset on value of type null
Server metrics [RAM: ▲0.47MB] [CPU: ▼38.16ms] Passed 4 tests
Analyzing server-side resources used by Konfirmi Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.51 ▲1.01 | 26.46 ▼12.51 |
Dashboard /wp-admin | 4.53 ▲1.15 | 25.81 ▼44.40 |
Posts /wp-admin/edit.php | 4.53 ▲1.14 | 29.78 ▼24.08 |
Add New Post /wp-admin/post-new.php | 4.53 ▼1.40 | 27.16 ▼71.65 |
Media Library /wp-admin/upload.php | 4.53 ▲1.26 | 27.19 ▼9.52 |
Server storage [IO: ▲1.55MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- There were 2 files (7.45KB) illegally modified outside of "wp-content/plugins/konfirmi/" and "wp-content/uploads/"
- (new file) Arraykonfirmi.min.css
- (new file) wp-admin/Arraykonfirmi.min.css
Filesystem: 469 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_konfirmi_widget_forms |
wp_konfirmi_forms |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
konfirmi_db_version |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Konfirmi Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲103 | 14.41 ▲0.06 | 2.08 ▲0.35 | 37.67 ▼2.53 |
Dashboard /wp-admin | 2,227 ▲46 | 5.59 ▼0.19 | 96.48 ▼6.06 | 36.46 ▼8.02 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 2.00 ▼0.04 | 39.82 ▼3.56 | 31.98 ▼6.94 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 21.56 ▼1.61 | 673.67 ▼55.24 | 37.57 ▼11.69 |
Media Library /wp-admin/upload.php | 1,426 ▲23 | 4.15 ▼0.02 | 108.77 ▲7.13 | 47.03 ▲2.11 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/konfirmi/vendor/leafo/scssphp/src/Compiler.php+3749
Trying to access array offset on value of type null
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/konfirmi/konfirmi-plugin.php
- > /wp-content/plugins/konfirmi/templates/caldera-templates/konfirmi-field-view.php
- > /wp-content/plugins/konfirmi/templates/caldera-templates/konfirmi-field-preview.php
- 179× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Konfirmi\\Base\\BaseController' not found in wp-content/plugins/konfirmi/app/Api/RestfulApi.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/konfirmi/vendor/symfony/yaml/Tests/InlineTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'Konfirmi\\Base\\FormController' not found in wp-content/plugins/konfirmi/app/Base/Forms/WooCommerce.php:13
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\TestExpression' not found in wp-content/plugins/konfirmi/vendor/twig/twig/src/Node/Expression/Test/DefinedTest.php:36
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/konfirmi/app/Models/WidgetModel.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/konfirmi/vendor/twig/twig/src/Node/Expression/ConstantExpression.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/konfirmi/vendor/twig/twig/src/Profiler/Node/LeaveProfileNode.php:22
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Yaml\\Exception\\RuntimeException' not found in wp-content/plugins/konfirmi/vendor/symfony/yaml/Exception/ParseException.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\IncludeNode' not found in wp-content/plugins/konfirmi/vendor/twig/twig/src/Node/EmbedNode.php:23
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/konfirmi/vendor/twig/twig/src/TokenParser/ForTokenParser.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (14 tag instead of maximum 10)
konfirmi/konfirmi-plugin.php 85% from 13 tests
The main PHP file in "Konfirmi Plugin" ver. 2.1.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important 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: It is recommended to name the main PHP file as the plugin slug ("konfirmi.php" instead of "konfirmi-plugin.php")
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin32,472 lines of code in 451 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 271 | 5,785 | 8,713 | 23,632 |
YAML | 33 | 179 | 122 | 3,486 |
reStructuredText | 114 | 2,494 | 2,409 | 2,934 |
JavaScript | 9 | 82 | 10 | 702 |
JSON | 7 | 0 | 0 | 548 |
Markdown | 8 | 234 | 0 | 493 |
Sass | 1 | 35 | 10 | 293 |
Twig | 2 | 3 | 0 | 126 |
make | 1 | 24 | 5 | 124 |
Bourne Shell | 1 | 6 | 1 | 43 |
Python | 1 | 73 | 165 | 33 |
HTML | 1 | 2 | 0 | 30 |
XML | 1 | 3 | 0 | 27 |
CSS | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 130)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 13.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 735.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 130.00 |
Code structure | ||
---|---|---|
Namespaces | 47 | |
Interfaces | 12 | |
Traits | 0 | |
Classes | 243 | |
▷ Abstract classes | 13 | 5.35% |
▷ Concrete classes | 230 | 94.65% |
▷ Final classes | 58 | 25.22% |
Methods | 1,543 | |
▷ Static methods | 82 | 5.31% |
▷ Public methods | 1,108 | 71.81% |
▷ Protected methods | 315 | 20.41% |
▷ Private methods | 120 | 7.78% |
Functions | 128 | |
▷ Named functions | 77 | 60.16% |
▷ Anonymous functions | 51 | 39.84% |
Constants | 133 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 133 | 100.00% |
▷ Public constants | 133 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 4.96KB | 3.10KB | ▼ 37.52% |