Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼3.92ms] Passed 4 tests
An overview of server-side resources used by AMP WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 44.87 ▲0.32 |
Dashboard /wp-admin | 3.56 ▲0.26 | 52.26 ▼4.41 |
Posts /wp-admin/edit.php | 3.68 ▲0.33 | 52.05 ▼0.01 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 88.23 ▼11.59 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 40.42 ▲0.49 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by AMP WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 14.36 ▼0.20 | 1.86 ▲0.22 | 37.69 ▼8.79 |
Dashboard /wp-admin | 2,232 ▲57 | 5.65 ▼0.07 | 97.06 ▼17.43 | 45.16 ▼1.37 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 1.98 ▼0.03 | 39.81 ▲4.09 | 35.80 ▼3.09 |
Add New Post /wp-admin/post-new.php | 1,550 ▲22 | 23.69 ▲0.67 | 682.11 ▼25.34 | 53.83 ▼8.10 |
Media Library /wp-admin/upload.php | 1,431 ▲28 | 4.16 ▼0.03 | 106.31 ▲8.41 | 48.21 ▲5.99 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
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
Even though everything seems fine, this is not 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 fix the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amp-woocommerce/inc/amp_woo_features.php:214
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amp-woocommerce/inc/amp_woo_ajax_calls.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/amp-woocommerce/templates/layouts/single.php:4
- > PHP Notice
Undefined variable: amp_blacklist_sanitizer in wp-content/plugins/amp-woocommerce/inc/class-amp-woo-blacklist.php on line 8
- > PHP Warning
Use of undefined constant AMP_WOO_INC_DIR - assumed 'AMP_WOO_INC_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/amp-woocommerce/inc/class-amp-woo-add-to-cart.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/amp-woocommerce/templates/layouts/product-review.php:2
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: amp, woocommerce
amp-woocommerce/amp-woocommerce.php 92% from 13 tests
The main PHP file in "AMP WooCommerce" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 160 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin5,132 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 480 | 321 | 4,973 |
JavaScript | 1 | 15 | 1 | 59 |
SVG | 3 | 0 | 0 | 56 |
Markdown | 1 | 9 | 0 | 44 |
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.41 |
Average class complexity | 39.33 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 25.00% |
▷ Protected methods | 15 | 46.88% |
▷ Private methods | 9 | 28.12% |
Functions | 36 | |
▷ Named functions | 34 | 94.44% |
▷ Anonymous functions | 2 | 5.56% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/home.png | 0.83KB | 0.58KB | ▼ 29.88% |
assets/placeholder.png | 15.33KB | 11.36KB | ▼ 25.86% |