Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▼7.83ms] Passed 4 tests
Server-side resources used by Kirim.Email Form Integration
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 46.00 ▼7.15 |
Dashboard /wp-admin | 3.71 ▲0.36 | 51.55 ▼15.79 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 54.29 ▲0.93 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.42 | 94.24 ▼7.03 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 38.30 ▼1.35 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 81 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_ke_page_lp |
wp_ke_page_form |
New WordPress options |
---|
ke-wp-version |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_ke_wpform_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Kirim.Email Form Integration
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.25 ▼1.12 | 2.01 ▼0.01 | 42.43 ▲0.90 |
Dashboard /wp-admin | 2,221 ▲33 | 5.89 ▲0.03 | 102.05 ▼7.09 | 80.60 ▲35.05 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 1.98 ▼0.00 | 40.57 ▲2.35 | 34.75 ▼0.98 |
Add New Post /wp-admin/post-new.php | 6,355 ▲4,836 | 26.11 ▲2.90 | 1,008.40 ▲339.28 | 45.97 ▼6.44 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.18 ▼0.01 | 95.29 ▼9.23 | 81.56 ▲38.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie tables detected upon uninstall: 2 tables
- wp_ke_page_form
- wp_ke_page_lp
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_ke_wpform_widget
- ke-wp-version
- theysaidso_admin_options
- 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 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
Please fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/kirimemail-form-integration/assets/js/tinymce-kirimemail.php
- > /wp-content/plugins/kirimemail-form-integration/includes/lib/class-kemail-widget.php
- > /wp-content/plugins/kirimemail-form-integration/views/notice.php
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/kirimemail-form-integration/views/widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/kirimemail-form-integration/views/metabox.php:3
- > PHP Notice
Undefined variable: type in wp-content/plugins/kirimemail-form-integration/views/notice.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'M1\\Env\\Parser\\AbstractParser' not found in wp-content/plugins/kirimemail-form-integration/vendor/m1/env/src/Parser/VariableParser.php:28
- > PHP Fatal error
Uncaught Error: Class 'M1\\Env\\Parser\\AbstractParser' not found in wp-content/plugins/kirimemail-form-integration/vendor/m1/env/src/Parser/ValueParser.php:28
- > PHP Notice
Undefined variable: type in wp-content/plugins/kirimemail-form-integration/views/notice.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/kirimemail-form-integration/views/index.php:8
- > PHP Fatal error
Uncaught Error: Class 'M1\\Env\\Parser\\AbstractParser' not found in wp-content/plugins/kirimemail-form-integration/vendor/m1/env/src/Parser/KeyParser.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/kirimemail-form-integration/views/shortcode.php:4
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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: marketing, form, kirimemail, email
kirimemail-form-integration/kirimemail-wp-form.php 77% from 13 tests
The main PHP script in "Kirim.Email Form Integration" version 1.4.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("kirimemail-form-integration.php" instead of "kirimemail-wp-form.php")
- Domain Path: The domain path should use only dashes and lowercase characters ("i18n/language")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected5,056 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 41 | 536 | 950 | 2,722 |
Markdown | 8 | 312 | 0 | 1,012 |
CSS | 4 | 88 | 1 | 480 |
JavaScript | 7 | 28 | 20 | 449 |
JSON | 4 | 0 | 0 | 214 |
SVG | 6 | 3 | 0 | 179 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 12.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 4 | 13.79% |
▷ Concrete classes | 25 | 86.21% |
▷ Final classes | 1 | 4.00% |
Methods | 172 | |
▷ Static methods | 21 | 12.21% |
▷ Public methods | 135 | 78.49% |
▷ Protected methods | 8 | 4.65% |
▷ Private methods | 29 | 16.86% |
Functions | 8 | |
▷ Named functions | 5 | 62.50% |
▷ Anonymous functions | 3 | 37.50% |
Constants | 17 | |
▷ Global constants | 10 | 58.82% |
▷ Class constants | 7 | 41.18% |
▷ Public constants | 7 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/images/icon.png | 1.12KB | 0.00KB | ▼ 100.00% |
(invalid) assets/js/icon.png | 1.12KB | 0.00KB | ▼ 100.00% |