Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.76MB] [CPU: ▲2.75ms] Passed 4 tests
An overview of server-side resources used by DominoKit
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.22 ▲0.75 | 46.53 ▼3.01 |
Dashboard /wp-admin | 4.07 ▲0.77 | 53.09 ▲2.91 |
Posts /wp-admin/edit.php | 4.12 ▲0.76 | 54.99 ▲12.30 |
Add New Post /wp-admin/post-new.php | 6.65 ▲0.76 | 103.02 ▲1.14 |
Media Library /wp-admin/upload.php | 3.99 ▲0.76 | 45.33 ▲9.97 |
Install Plugins /wp-admin/plugins.php?page=dominokit-install-plugins | 4.00 | 38.85 |
Server storage [IO: ▲13.45MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 1,173 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by DominoKit
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲82 | 13.18 ▼1.12 | 1.74 ▼0.31 | 42.21 ▼4.89 |
Dashboard /wp-admin | 2,231 ▲40 | 5.80 ▼0.10 | 101.47 ▼6.03 | 41.39 ▼6.53 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.05 ▼0.00 | 41.04 ▲0.11 | 39.96 ▲4.00 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 21.57 ▼1.55 | 697.23 ▲62.34 | 55.30 ▼0.05 |
Media Library /wp-admin/upload.php | 1,427 ▲42 | 4.23 ▲0.01 | 97.27 ▼2.26 | 43.90 ▲0.09 |
Install Plugins /wp-admin/plugins.php?page=dominokit-install-plugins | 959 | 2.06 | 26.50 | 29.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 141× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\InvalidArgumentException' not found in wp-content/plugins/dominokit/vendor/nesbot/carbon/src/Carbon/Exceptions/NotAPeriodException.php:16
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\DependencyInjection\\Compiler\\AbstractRecursivePass' not found in wp-content/plugins/dominokit/vendor/symfony/translation/DependencyInjection/TranslatorPathsPass.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\RuntimeException' not found in wp-content/plugins/dominokit/vendor/nesbot/carbon/src/Carbon/Exceptions/EndLessPeriodException.php:16
- > PHP Fatal error
Uncaught Error: Class 'Carbon\\Factory' not found in wp-content/plugins/dominokit/vendor/nesbot/carbon/src/Carbon/FactoryImmutable.php:240
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/dominokit/vendor/morilog/jalali/tests/JalalianTest.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Exception\\ExceptionInterface' not found in wp-content/plugins/dominokit/vendor/symfony/translation/Exception/ProviderExceptionInterface.php:17
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Polyfill\\Php80\\PhpToken' not found in wp-content/plugins/dominokit/vendor/symfony/polyfill-php80/Resources/stubs/PhpToken.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\MessageCatalogueInterface' not found in wp-content/plugins/dominokit/vendor/symfony/translation/MessageCatalogue.php:20
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Loader\\FileLoader' not found in wp-content/plugins/dominokit/vendor/symfony/translation/Loader/MoFileLoader.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\Exception' not found in wp-content/plugins/dominokit/vendor/nesbot/carbon/src/Carbon/Exceptions/BadMethodCallException.php:14
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Screenshots are stored in the /assets/screenshots.), #2 (This is the second screen shot)
dominokit/dominokit.php Passed 13 tests
The main PHP file in "DominoKit" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
57 characters long description:
ووکامرس خود را سفارشی سازی کنید
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
It is important to fix the following items
- For security reasons, never distribute binary or executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/dominokit/vendor/bin/carbon.bat
- ☣ wp-content/plugins/dominokit/vendor/nesbot/carbon/bin/carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 864 | 8,485 | 28,783 | 41,637 |
CSS | 14 | 7,526 | 16 | 23,202 |
JavaScript | 11 | 247 | 1,646 | 10,912 |
XSD | 3 | 92 | 48 | 2,803 |
JSON | 11 | 0 | 0 | 1,254 |
Markdown | 9 | 334 | 0 | 836 |
PO File | 1 | 143 | 230 | 394 |
YAML | 2 | 15 | 24 | 38 |
XML | 1 | 0 | 0 | 16 |
DOS Batch | 2 | 0 | 0 | 8 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 140)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 16.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 322.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 140.00 |
Code structure | ||
---|---|---|
Namespaces | 36 | |
Interfaces | 28 | |
Traits | 28 | |
Classes | 163 | |
▷ Abstract classes | 16 | 9.82% |
▷ Concrete classes | 147 | 90.18% |
▷ Final classes | 17 | 11.56% |
Methods | 2,049 | |
▷ Static methods | 508 | 24.79% |
▷ Public methods | 1,772 | 86.48% |
▷ Protected methods | 154 | 7.52% |
▷ Private methods | 123 | 6.00% |
Functions | 336 | |
▷ Named functions | 107 | 31.85% |
▷ Anonymous functions | 229 | 68.15% |
Constants | 203 | |
▷ Global constants | 17 | 8.37% |
▷ Class constants | 186 | 91.63% |
▷ Public constants | 183 | 98.39% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshots/Dominokit-128.png | 4.54KB | 2.86KB | ▼ 36.89% |
assets/screenshots/Dominokit-256.png | 8.58KB | 5.01KB | ▼ 41.62% |