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
Install script ran successfully
Server metrics [RAM: ▲0.34MB] [CPU: ▼2.37ms] Passed 4 tests
An overview of server-side resources used by WPClothes2Order
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 43.84 ▲4.75 |
Dashboard /wp-admin | 3.69 ▲0.38 | 48.57 ▼2.14 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 44.83 ▼0.94 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 80.12 ▼10.78 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 37.23 ▲4.39 |
Server storage [IO: ▲10.50MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 491 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WPClothes2Order
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.38 ▼0.01 | 1.71 ▲0.01 | 43.75 ▼1.97 |
Dashboard /wp-admin | 2,201 ▲24 | 5.69 ▲0.06 | 92.19 ▼5.92 | 41.73 ▼4.83 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.96 ▼0.07 | 33.95 ▼12.06 | 34.29 ▼4.80 |
Add New Post /wp-admin/post-new.php | 1,532 ▲4 | 22.93 ▲0.04 | 666.02 ▲14.29 | 55.43 ▲3.51 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.18 ▲0.02 | 96.54 ▼9.48 | 44.28 ▼1.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wpclothes2order/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 117× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/wpclothes2order/vendor/htmlburger/carbon-fields/core/Pimple/Exception/ExpectedInvokableException.php:36
- > PHP Notice
Undefined variable: errors in wp-content/plugins/wpclothes2order/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 35
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wpclothes2order/vendor/htmlburger/carbon-fields/templates/Container/post_meta.php:1
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Meta_Datastore' not found in wp-content/plugins/wpclothes2order/vendor/htmlburger/carbon-fields/core/Datastore/Comment_Meta_Datastore.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wpclothes2order/vendor/htmlburger/carbon-fields/templates/Container/nav_menu_item.php:1
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Time_Field' not found in wp-content/plugins/wpclothes2order/vendor/htmlburger/carbon-fields/core/Field/Date_Time_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Predefined_Options_Field' not found in wp-content/plugins/wpclothes2order/vendor/htmlburger/carbon-fields/core/Field/Select_Field.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Meta_Datastore' not found in wp-content/plugins/wpclothes2order/vendor/htmlburger/carbon-fields/core/Datastore/Term_Meta_Datastore.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/wpclothes2order/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Parent_ID_Condition.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/wpclothes2order/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Template_Condition.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5 in wpclothes2order/assets to your readme.txt
wpclothes2order/wpclothes2order.php 85% from 13 tests
Analyzing the main PHP file in "WPClothes2Order" version 1.0.11
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin33,900 lines of code in 436 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 175 | 7,099 | 10,936 | 16,203 |
PHP | 172 | 2,820 | 7,367 | 10,986 |
PO File | 28 | 898 | 1,111 | 2,411 |
CSS | 8 | 240 | 1,157 | 2,222 |
Sass | 49 | 365 | 3 | 1,868 |
JSON | 2 | 0 | 0 | 157 |
Markdown | 2 | 15 | 0 | 53 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 133 | |
▷ Abstract classes | 11 | 8.27% |
▷ Concrete classes | 122 | 91.73% |
▷ Final classes | 2 | 1.64% |
Methods | 951 | |
▷ Static methods | 107 | 11.25% |
▷ Public methods | 771 | 81.07% |
▷ Protected methods | 165 | 17.35% |
▷ Private methods | 15 | 1.58% |
Functions | 135 | |
▷ Named functions | 52 | 38.52% |
▷ Anonymous functions | 83 | 61.48% |
Constants | 48 | |
▷ Global constants | 23 | 47.92% |
▷ Class constants | 25 | 52.08% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin