Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼1.85MB] [CPU: ▼46.85ms] Passed 4 tests
This is a short check of server-side resources used by Category Subdomains for Woocommerce by TheCartPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.35 | 9.27 ▼29.60 |
Dashboard /wp-admin | 2.16 ▼1.14 | 10.87 ▼37.71 |
Posts /wp-admin/edit.php | 2.16 ▼1.19 | 7.73 ▼36.80 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 7.70 ▼83.27 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 8.38 ▼24.09 |
TCP Plugins /wp-admin/admin.php?page=thecartpress | 2.16 | 7.90 |
Category Subdomains /wp-admin/admin.php?page=tcp-subdomain-admin | 2.16 | 8.69 |
Server storage [IO: ▲0.05MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Category Subdomains for Woocommerce by TheCartPress: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,498 ▼248 | 13.18 ▼1.18 | 0.64 ▼0.88 | 16.60 ▼25.62 |
Dashboard /wp-admin | 2,248 ▲60 | 5.88 ▲0.96 | 98.18 ▼6.05 | 88.49 ▲44.94 |
Posts /wp-admin/edit.php | 2,134 ▲45 | 2.02 ▼0.13 | 39.11 ▲0.59 | 33.40 ▼1.38 |
Add New Post /wp-admin/post-new.php | 1,558 ▲16 | 23.49 ▲5.14 | 689.88 ▲76.19 | 67.01 ▲16.19 |
Media Library /wp-admin/upload.php | 1,430 ▲39 | 4.23 ▲0.07 | 93.00 ▼4.57 | 74.94 ▲30.89 |
TCP Plugins /wp-admin/admin.php?page=thecartpress | 943 | 2.03 | 25.67 | 28.96 |
Category Subdomains /wp-admin/admin.php?page=tcp-subdomain-admin | 845 | 2.20 | 23.81 | 25.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/tcp-category-subdomains/options.php+26
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tcp-subdomain-admin
- > Notice in wp-content/plugins/tcp-category-subdomains/options.php+26
Trying to access array offset on value of type bool
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
8 plugin tags: category, woocommerce, product, thecartpress, post...
tcp-category-subdomains/tcp-category-subdomains.php Passed 13 tests
Analyzing the main PHP file in "Category Subdomains for Woocommerce by TheCartPress" version 1.4.0
79 characters long description:
This plugin can converts post and woocommerce product categories to subdomains.
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
Success! There were no dangerous files found in this plugin937 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 126 | 261 | 889 |
CSS | 1 | 6 | 0 | 33 |
SVG | 1 | 0 | 1 | 15 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 22.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 1 | 2.00% |
▷ Public methods | 49 | 98.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.00% |
Functions | 24 | |
▷ Named functions | 13 | 54.17% |
▷ Anonymous functions | 11 | 45.83% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/tcp-icon.png | 0.34KB | 0.29KB | ▼ 13.08% |