Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.95MB] [CPU: ▼0.32ms] Passed 4 tests
A check of server-side resources used by INBOX Forms
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.54 | 42.83 ▲3.53 |
Dashboard /wp-admin | 4.42 ▲1.11 | 49.80 ▼4.39 |
Posts /wp-admin/edit.php | 4.45 ▲1.10 | 48.54 ▲2.04 |
Add New Post /wp-admin/post-new.php | 7.11 ▲1.23 | 80.47 ▼2.44 |
Media Library /wp-admin/upload.php | 4.29 ▲1.06 | 44.41 ▲9.05 |
Forms /wp-admin/admin.php?page=inbox-forms | 4.19 | 36.54 |
Settings /wp-admin/admin.php?page=inbox-settings | 4.22 | 37.33 |
Server storage [IO: ▲4.66MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 1,227 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_inbox_forms |
New WordPress options |
---|
widget_recent-comments |
widget_inbox_forms_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
inbox_settings |
ib_db_ver |
db_upgraded |
can_compress_scripts |
ib_plugin_activated |
... |
Browser metrics Passed 4 tests
INBOX Forms: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,080 ▲345 | 14.89 ▲0.33 | 19.89 ▲18.08 | 37.04 ▼5.57 |
Dashboard /wp-admin | 2,228 ▲40 | 4.96 ▼0.92 | 99.77 ▼3.05 | 80.51 ▲33.18 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.32 ▲0.29 | 34.72 ▼3.54 | 33.28 ▼1.23 |
Add New Post /wp-admin/post-new.php | 6,445 ▲4,912 | 21.06 ▼2.24 | 979.71 ▲312.52 | 38.45 ▼13.51 |
Media Library /wp-admin/upload.php | 1,422 ▲37 | 4.39 ▲0.18 | 107.56 ▲10.54 | 47.23 ▲1.30 |
Forms /wp-admin/admin.php?page=inbox-forms | 941 | 1.96 | 30.50 | 28.93 |
Settings /wp-admin/admin.php?page=inbox-settings | 941 | 1.95 | 31.61 | 28.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_inbox_forms
- Zombie WordPress options were found after uninstall: 10 options
- can_compress_scripts
- widget_inbox_forms_widget
- widget_recent-comments
- ib_db_ver
- ib_install_date
- inbox_settings
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/inbox-forms/vendor/symfony/translation/Resources/bin/translation-status.php
- 160× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/inbox-forms/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\InvalidArgumentException' not found in wp-content/plugins/inbox-forms/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidDateException.php:16
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/inbox-forms/src/Admin/FormsList.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Loader\\FileLoader' not found in wp-content/plugins/inbox-forms/vendor/symfony/translation/Loader/YamlFileLoader.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Contracts\\Translation\\TranslatorInterface' not found in wp-content/plugins/inbox-forms/vendor/symfony/translation/PseudoLocalizationTranslator.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Exception\\ExceptionInterface' not found in wp-content/plugins/inbox-forms/vendor/symfony/translation/Exception/NotFoundResourceException.php:19
- > PHP Fatal error
Uncaught Error: Class 'Inbox\\Repositories\\AbstractRepository' not found in wp-content/plugins/inbox-forms/src/Repositories/FormRepository.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Contracts\\Translation\\TranslatorInterface' not found in wp-content/plugins/inbox-forms/vendor/symfony/translation/DataCollectorTranslator.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\InvalidArgumentException' not found in wp-content/plugins/inbox-forms/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidCastException.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/inbox-forms/vendor/guzzlehttp/psr7/src/LimitStream.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
6 plugin tags: form, subscribe, webform, useinbox, newsletter...
inbox-forms/inbox-form.php 85% from 13 tests
The primary PHP file in "INBOX Forms" version 1.0.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("inbox-forms.php" instead of "inbox-form.php")
Code Analysis 3% from 3 tests
File types 0% from 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
Please make sure to remedy the following
- Do not distribute dangerous files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/inbox-forms/vendor/bin/carbon.bat
- ☣ wp-content/plugins/inbox-forms/vendor/nesbot/carbon/bin/carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 923 | 8,115 | 29,681 | 43,619 |
JavaScript | 14 | 1,369 | 680 | 4,682 |
Markdown | 20 | 1,300 | 0 | 3,863 |
XSD | 3 | 92 | 48 | 2,803 |
CSS | 12 | 395 | 42 | 2,158 |
JSON | 16 | 0 | 0 | 1,522 |
PO File | 2 | 130 | 150 | 336 |
YAML | 4 | 25 | 0 | 87 |
XML | 1 | 0 | 0 | 46 |
make | 1 | 4 | 0 | 9 |
DOS Batch | 2 | 0 | 0 | 8 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 138)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 14.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 296.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 138.00 |
Code structure | ||
---|---|---|
Namespaces | 37 | |
Interfaces | 43 | |
Traits | 27 | |
Classes | 192 | |
▷ Abstract classes | 6 | 3.12% |
▷ Concrete classes | 186 | 96.88% |
▷ Final classes | 28 | 15.05% |
Methods | 2,251 | |
▷ Static methods | 506 | 22.48% |
▷ Public methods | 1,938 | 86.10% |
▷ Protected methods | 106 | 4.71% |
▷ Private methods | 207 | 9.20% |
Functions | 426 | |
▷ Named functions | 120 | 28.17% |
▷ Anonymous functions | 306 | 71.83% |
Constants | 174 | |
▷ Global constants | 18 | 10.34% |
▷ Class constants | 156 | 89.66% |
▷ Public constants | 155 | 99.36% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 PNG files occupy 0.18MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/plugins/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/images/logo.png | 9.77KB | 4.31KB | ▼ 55.86% |
assets/images/footer_logo.png | 4.85KB | 2.27KB | ▼ 53.23% |
assets/images/close@2x.png | 2.58KB | 3.06KB | 0.00% |
assets/images/video-placeholder.png | 1.17KB | 1.50KB | 0.00% |