Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.93ms] Passed 4 tests
This is a short check of server-side resources used by Natali - синхронизация каталога
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.57 ▲2.73 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.45 ▼6.20 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.96 ▲2.65 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.81 ▼10.52 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.92 ▲2.37 |
Server storage [IO: ▲0.41MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 85 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Natali - синхронизация каталога
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.37 ▲0.02 | 1.77 ▲0.14 | 43.94 ▲4.09 |
Dashboard /wp-admin | 2,192 ▲15 | 5.54 ▼0.12 | 87.30 ▼2.38 | 39.68 ▼3.73 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.02 | 34.77 ▼1.07 | 35.00 ▼0.95 |
Add New Post /wp-admin/post-new.php | 1,526 ▲1 | 23.94 ▲0.61 | 693.72 ▲95.01 | 53.92 ▲10.13 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.22 ▲0.02 | 108.28 ▼1.01 | 46.70 ▲1.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/cadesign-natali/lib/Pages/SyncCatalog.php
- > /wp-content/plugins/cadesign-natali/lib/Classes/DeleteProduct.php
- > /wp-content/plugins/cadesign-natali/vendor/automattic/woocommerce/tests/bootstrap.php
- > /wp-content/plugins/cadesign-natali/updateNatali.php
- 24× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Cadesign\ataliApi\\CategoryList' not found in wp-content/plugins/cadesign-natali/views/import_steps/step1.php:31
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/cadesign-natali/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/OptionsTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/cadesign-natali/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/BasicAuthTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Cadesign\atali\\Assoc' not found in wp-content/plugins/cadesign-natali/views/delete.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cadesign-natali/updateNatali.php on line 27
- > PHP Fatal error
Uncaught Error: Class 'Cadesign\ataliApi\\AbstractProp' not found in wp-content/plugins/cadesign-natali/lib/Classes/ParsedProps/Colors.php:7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cadesign-natali/updateNatali.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/cadesign-natali/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/RequestTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Cadesign\ataliApi\\AbstractProp' not found in wp-content/plugins/cadesign-natali/lib/Classes/ParsedProps/Brands.php:7
- > PHP Fatal error
Uncaught Error: Class 'Cadesign\ataliApi\\AbstractProp' not found in wp-content/plugins/cadesign-natali/lib/Classes/ParsedProps/Sizes.php:7
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: cadesign, natali, woocommerce, natali-sync
cadesign-natali/cadesign-natali.php 92% from 13 tests
"Natali - синхронизация каталога" version 1.1.18's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 822 characters long)
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
Success! There were no dangerous files found in this plugin10,269 lines of code in 79 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 70 | 1,014 | 1,461 | 5,427 |
JavaScript | 1 | 1,185 | 332 | 4,591 |
Markdown | 1 | 40 | 0 | 118 |
JSON | 2 | 0 | 0 | 85 |
XML | 2 | 1 | 0 | 26 |
YAML | 2 | 6 | 0 | 21 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 1 | 1.82% |
▷ Concrete classes | 54 | 98.18% |
▷ Final classes | 0 | 0.00% |
Methods | 275 | |
▷ Static methods | 98 | 35.64% |
▷ Public methods | 231 | 84.00% |
▷ Protected methods | 25 | 9.09% |
▷ Private methods | 19 | 6.91% |
Functions | 9 | |
▷ Named functions | 6 | 66.67% |
▷ Anonymous functions | 3 | 33.33% |
Constants | 17 | |
▷ Global constants | 3 | 17.65% |
▷ Class constants | 14 | 82.35% |
▷ Public constants | 8 | 57.14% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin