Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.61MB] [CPU: ▼17.14ms] Passed 4 tests
Server-side resources used by UP WP Cart
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 44.18 ▲2.82 |
Dashboard /wp-admin | 3.37 ▲0.07 | 45.12 ▼3.21 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 46.19 ▼2.98 |
Add New Post /wp-admin/post-new.php | 3.25 ▼2.64 | 36.41 ▼59.96 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 36.47 ▼2.42 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 96 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for UP WP Cart
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 13.17 ▼1.21 | 1.78 ▼0.10 | 43.92 ▼3.83 |
Dashboard /wp-admin | 2,222 ▲34 | 5.86 ▼0.03 | 95.63 ▼17.50 | 39.28 ▼4.57 |
Posts /wp-admin/edit.php | 2,102 ▲10 | 2.04 ▲0.05 | 39.98 ▼9.97 | 35.21 ▼5.54 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.24 ▼0.17 | 595.79 ▲8.30 | 49.34 ▲6.79 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.15 ▼0.02 | 94.78 ▼5.28 | 40.72 ▼1.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% 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 50% 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
- 40× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/up-wp-cart/up-wp-cart/trunk/default-filters.php:139
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/up-wp-cart/wpcf7/email/wpcf7-email.php:38
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/up-wp-cart/up-wp-cart/trunk/WPCartAPI.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/up-wp-cart/up-wp-cart/trunk/default-filters.php:139
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/up-wp-cart/default-filters.php:139
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/up-wp-cart/wpcf7/email/wpcf7-email-render-text.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/up-wp-cart/up-wp-cart/trunk/wpcf7/wpcf7-validation.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/up-wp-cart/admin/settings.php:53
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/up-wp-cart/up-wp-cart/trunk/shortcode/shortcode.php:377
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/up-wp-cart/up-wp-cart/trunk/wpcf7/email/wpcf7-email.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid url: ""
up-wp-cart/up-wp-cart.php Passed 13 tests
The main file in "UP WP Cart" v. 0.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
25 characters long description:
Simple Cart for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,851 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 452 | 786 | 1,468 |
Markdown | 7 | 96 | 0 | 383 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 5.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 0 | 0.00% |
▷ Public methods | 42 | 84.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 16.00% |
Functions | 144 | |
▷ Named functions | 144 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 48 | |
▷ Global constants | 36 | 75.00% |
▷ Class constants | 12 | 25.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin