Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.90ms] Passed 4 tests
This is a short check of server-side resources used by WC Add To Cart As Admin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.04 ▼7.30 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.64 ▼1.79 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.79 ▼0.36 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 108.00 ▲12.21 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.34 ▲1.85 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
WC Add To Cart As Admin: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.22 ▼1.15 | 1.68 ▼0.28 | 40.70 ▼2.14 |
Dashboard /wp-admin | 2,206 ▲18 | 5.85 ▲0.96 | 107.95 ▲0.41 | 39.97 ▼2.16 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.04 ▲0.02 | 39.63 ▼2.21 | 34.32 ▼3.15 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.16 ▲0.62 | 616.04 ▼30.09 | 54.30 ▼8.36 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.25 ▲0.07 | 94.53 ▼5.16 | 43.19 ▲0.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- 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 shallow check 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
Please take a closer look at the following
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wc-add-to-cart-as-admin/wc-add-to-cart-as-admin.php
- > /wp-content/plugins/wc-add-to-cart-as-admin/admin/class-atcaa-admin.php
- > /wp-content/plugins/wc-add-to-cart-as-admin/includes/class-atcaa-activator.php
- > /wp-content/plugins/wc-add-to-cart-as-admin/public/class-atcaa-public.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: store, woocommerce, shop, online-store, e-shop...
wc-add-to-cart-as-admin/wc-add-to-cart-as-admin.php Passed 13 tests
Analyzing the main PHP file in "WC Add To Cart As Admin" version 1.0.1
56 characters long description:
Add products to your customer's cart from WP admin side.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected849 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 200 | 143 | 433 |
JavaScript | 2 | 53 | 35 | 247 |
CSS | 2 | 47 | 6 | 169 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 21 | 100.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin