Benchmarks
Plugin footprint 83% 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.00MB] [CPU: ▼0.84ms] Passed 4 tests
Server-side resources used by Dustid Integration Kit
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.85 ▲0.04 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.08 ▼2.85 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.63 ▼0.16 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.87 ▲1.22 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.74 ▼0.37 |
Server storage [IO: ▲2.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 69 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Dustid Integration Kit
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲3 | 14.37 ▲0.09 | 1.62 ▼0.58 | 38.09 ▼7.68 |
Dashboard /wp-admin | 2,192 ▲24 | 5.66 ▲0.15 | 95.57 ▲2.88 | 42.10 ▼1.32 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.02 ▲0.08 | 39.21 ▲2.19 | 36.71 ▼2.67 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.27 ▲0.02 | 650.68 ▲43.45 | 49.82 ▲2.13 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.19 ▲0.03 | 97.93 ▼2.36 | 43.44 ▲1.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/dustid-integration-kit/admin/partials/dustid_integration_kit-admin-orders.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dustid-integration-kit/admin/partials/dustid_integration_kit-admin-settings.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/dustid-integration-kit/public/partials/dustid_integration_kit-public-how_its_work.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== dustid-integration-kit ===
)
dustid-integration-kit/dustid_integration_kit.php 85% from 13 tests
The main PHP file in "Dustid Integration Kit" ver. 1.0.14 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dustid-integration-kit.php" instead of "dustid_integration_kit.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected17,103 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 2,291 | 115 | 12,244 |
PHP | 20 | 706 | 1,196 | 2,858 |
JavaScript | 4 | 340 | 225 | 1,864 |
SVG | 1 | 0 | 0 | 137 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 15.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 2 | 2.50% |
▷ Public methods | 73 | 91.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 8.75% |
Functions | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
24 PNG files occupy 0.92MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/confirmed.png | 1.47KB | 0.78KB | ▼ 47.42% |
images/next.png | 0.40KB | 0.34KB | ▼ 13.30% |
images/logo.png | 3.89KB | 3.10KB | ▼ 20.30% |
images/un-visible.png | 1.23KB | 0.65KB | ▼ 46.97% |
images/user_profile.png | 2.02KB | 1.68KB | ▼ 16.86% |