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.06MB] [CPU: ▼1.29ms] Passed 4 tests
Server-side resources used by WooMS
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 43.73 ▲1.08 |
Dashboard /wp-admin | 3.36 ▲0.06 | 46.94 ▼0.86 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 48.47 ▼1.08 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 90.07 ▼3.74 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 32.60 ▲0.53 |
Server storage [IO: ▲3.95MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooMS
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.25 ▼0.46 | 1.64 ▼0.15 | 36.36 ▼7.10 |
Dashboard /wp-admin | 2,195 ▲18 | 5.58 ▼0.09 | 94.80 ▲0.78 | 43.73 ▼2.73 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.03 ▲0.03 | 38.75 ▲2.92 | 35.53 ▲4.85 |
Add New Post /wp-admin/post-new.php | 1,526 ▼19 | 23.26 ▼1.79 | 601.02 ▼15.99 | 48.71 ▼9.89 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▼0.02 | 99.18 ▲2.94 | 41.44 ▲1.26 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function WooMS\\add_filter() in wp-content/plugins/wooms/includes/OrderStatusesFromSite.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function WooMS\\get_option() in wp-content/plugins/wooms/includes/SiteHealthWebHooks.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function WooMS\\ProductsImage\\add_action() in wp-content/plugins/wooms/includes/ProductsImage.php:11
- > PHP Fatal error
Trait 'WooMS\\MSImages' not found in wp-content/plugins/wooms/includes/ProductVariableImage.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function WooMS\\ProductsHider\\add_action() in wp-content/plugins/wooms/includes/ProductsHiding.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function WooMS\\add_action() in wp-content/plugins/wooms/includes/MenuTools.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function WooMS\\ProductsScheduler\\add_action() in wp-content/plugins/wooms/includes/ProductsScheduler.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function WooMS\\add_action() in wp-content/plugins/wooms/includes/OrderUpdateFromMoySklad.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function WooMS\\add_action() in wp-content/plugins/wooms/includes/Logger.php:18
- > PHP Fatal error
Uncaught Error: Class 'WooMS\\AbstractWalker' not found in wp-content/plugins/wooms/includes/ProductGrouped.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: sync, integration, moysklad, woocommerce
wooms/wooms.php 85% from 13 tests
The entry point to "WooMS" version 9.8 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("6.0" instead of "7.0")
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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
There were no executable files found in this plugin6,789 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 43 | 2,256 | 1,358 | 6,761 |
Markdown | 4 | 6 | 0 | 21 |
YAML | 1 | 0 | 0 | 4 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
A short review 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.30 |
Average class complexity | 19.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 31 | |
▷ Abstract classes | 1 | 3.23% |
▷ Concrete classes | 30 | 96.77% |
▷ Final classes | 3 | 10.00% |
Methods | 279 | |
▷ Static methods | 279 | 100.00% |
▷ Public methods | 279 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 116 | |
▷ Named functions | 59 | 50.86% |
▷ Anonymous functions | 57 | 49.14% |
Constants | 10 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 10 | 100.00% |
▷ Public constants | 10 | 100.00% |
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
There were not PNG files found in your plugin