Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin cannot be installed
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.26MB] [CPU: ▼2.09ms] Passed 4 tests
Server-side resources used by FS Product Inquiry
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 44.03 ▼0.02 |
Dashboard /wp-admin | 3.56 ▲0.26 | 50.30 ▲1.92 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 44.41 ▼1.82 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 91.53 ▼8.43 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 38.75 ▲2.22 |
FS Inquiries /wp-admin/edit.php?post_type=fspi-inquiry | 3.53 | 38.07 |
FS Product /wp-admin/edit.php?post_type=fspi-products | 3.53 | 36.39 |
Attributes /wp-admin/edit-tags.php?taxonomy=attributes&post_type=fspi-products | 3.48 | 35.50 |
FS Settings /wp-admin/options-general.php?page=fspi-setting | 3.46 | 33.53 |
Category /wp-admin/edit-tags.php?taxonomy=fspi-category&post_type=fspi-products | 3.48 | 32.12 |
Add New Product /wp-admin/post-new.php?post_type=fspi-products | 3.69 | 52.99 |
Server storage [IO: ▲3.76MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 55 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
_fspi_inquiry_form_fields |
can_compress_scripts |
_fspi_server_url |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
FS Product Inquiry: 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 / | 2,866 ▲120 | 14.45 ▼0.07 | 1.81 ▼0.01 | 43.13 ▲0.76 |
Dashboard /wp-admin | 2,269 ▲81 | 5.86 ▲0.01 | 103.45 ▼17.09 | 38.07 ▼8.77 |
Posts /wp-admin/edit.php | 2,152 ▲63 | 2.07 ▲0.07 | 34.75 ▼3.55 | 35.45 ▲3.09 |
Add New Post /wp-admin/post-new.php | 1,590 ▲76 | 23.33 ▲5.63 | 619.81 ▼75.03 | 64.02 ▲0.36 |
Media Library /wp-admin/upload.php | 1,448 ▲60 | 4.24 ▲0.02 | 95.04 ▼12.93 | 41.34 ▼7.75 |
FS Inquiries /wp-admin/edit.php?post_type=fspi-inquiry | 1,113 | 1.94 | 29.50 | 29.14 |
FS Product /wp-admin/edit.php?post_type=fspi-products | 1,150 | 2.00 | 31.51 | 32.34 |
Attributes /wp-admin/edit-tags.php?taxonomy=attributes&post_type=fspi-products | 1,321 | 2.14 | 26.59 | 28.48 |
FS Settings /wp-admin/options-general.php?page=fspi-setting | 1,449 | 1.75 | 26.53 | 38.58 |
Category /wp-admin/edit-tags.php?taxonomy=fspi-category&post_type=fspi-products | 1,325 | 2.27 | 34.52 | 33.55 |
Add New Product /wp-admin/post-new.php?post_type=fspi-products | 2,718 | 7.94 | 169.64 | 63.64 |
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
- This plugin does not fully uninstall, leaving 8 options in the database
- _fspi_server_url
- _fspi_inquiry_form_fields
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Admin General Settings), #2 (Inquiry form settings), #3 (Email Settings), #4 (Licence Settings), #5 (Product Inquiry Page), #6 (Inquiry Popup)
fs-product-inquiry/fs-product-inquiry.php 92% from 13 tests
The principal PHP file in "FS Product Inquiry" v. 1.1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- 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 not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin24,271 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 12 | 1,533 | 65 | 13,725 |
JavaScript | 7 | 2,035 | 1,695 | 8,840 |
PHP | 21 | 163 | 227 | 1,706 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 16.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 2 | 25.00% |
Methods | 48 | |
▷ Static methods | 1 | 2.08% |
▷ Public methods | 48 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/public/img/box.png | 12.45KB | 9.83KB | ▼ 21.05% |
assets/public/img/product.png | 6.76KB | 6.08KB | ▼ 10.05% |