Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼0.87ms] Passed 4 tests
This is a short check of server-side resources used by PWACommerce - WooCommerce Mobile Plugin for Progressive Web Apps & Hybrid Mobile Apps
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 39.77 ▲1.07 |
Dashboard /wp-admin | 3.49 ▲0.19 | 50.10 ▲1.13 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 49.18 ▲4.13 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 84.31 ▼9.82 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 38.40 ▲5.45 |
Server storage [IO: ▲2.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 107 new files
Database: no new tables, 12 new options
New WordPress options |
---|
pwacommerce_icon |
widget_recent-comments |
pwacommerce_consumer_secret |
theysaidso_admin_options |
pwacommerce_service_worker_installed |
db_upgraded |
can_compress_scripts |
pwacommerce_consumer_key |
widget_recent-posts |
pwacommerce_joined_subscriber_list |
... |
Browser metrics Passed 4 tests
A check of browser resources used by PWACommerce - WooCommerce Mobile Plugin for Progressive Web Apps & Hybrid Mobile Apps
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲99 | 14.66 ▲0.48 | 1.70 ▲0.13 | 44.00 ▲3.81 |
Dashboard /wp-admin | 2,236 ▲65 | 5.81 ▲0.15 | 84.40 ▼7.05 | 89.63 ▲47.85 |
Posts /wp-admin/edit.php | 2,159 ▲59 | 2.22 ▲0.23 | 32.30 ▼7.20 | 33.57 ▲0.50 |
Add New Post /wp-admin/post-new.php | 1,732 ▲203 | 22.32 ▼0.63 | 664.59 ▲1.34 | 29.89 ▼26.69 |
Media Library /wp-admin/upload.php | 1,456 ▲53 | 4.26 ▲0.02 | 106.09 ▲5.37 | 80.87 ▲31.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/pwacommerce/vendor/mobiledetect/mobiledetectlib/export/exportToJSON.php
- > /wp-content/plugins/pwacommerce/vendor/automattic/woocommerce/tests/bootstrap.php
- 19× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/pwacommerce/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/OAuthTest.php:7
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/pwacommerce/pwacommerce.php on line 19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/pwacommerce/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/BasicAuthTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/pwacommerce/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/OptionsTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PWAcommerce\\Includes\\Options' not found in wp-content/plugins/pwacommerce/admin/pages/settings.php:2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pwacommerce/pwacommerce.php on line 19
- > PHP Fatal error
Uncaught Error: Class 'PWAcommerce\\Frontend\\Frontend_Init' not found in wp-content/plugins/pwacommerce/frontend/themes/app/template.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function PWAcommerce\\Includes\\wp_upload_dir() in wp-content/plugins/pwacommerce/includes/class-uploads.php:37
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/pwacommerce/vendor/automattic/woocommerce/tests/WooCommerce/Tests/ClientTest.php:7
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/pwacommerce/pwacommerce.php on line 19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 33 tag instead of maximum 10
pwacommerce/pwacommerce.php Passed 13 tests
The principal PHP file in "PWACommerce - WooCommerce Mobile Plugin for Progressive Web Apps & Hybrid Mobile Apps" v. 0.5.1 is loaded by WordPress automatically on each request
82 characters long description:
WooCommerce mobile plugin to package your online store into a Progressive Web App.
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
No dangerous file extensions were detected6,554 lines of code in 93 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 44 | 1,002 | 1,843 | 2,945 |
JavaScript | 21 | 427 | 670 | 2,421 |
Sass | 8 | 38 | 3 | 462 |
Markdown | 6 | 166 | 0 | 406 |
JSON | 5 | 0 | 0 | 186 |
XML | 4 | 46 | 78 | 110 |
YAML | 2 | 6 | 0 | 19 |
CSS | 3 | 2 | 20 | 5 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 13.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 29 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 200 | |
▷ Static methods | 12 | 6.00% |
▷ Public methods | 170 | 85.00% |
▷ Protected methods | 28 | 14.00% |
▷ Private methods | 2 | 1.00% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 23 | |
▷ Global constants | 8 | 34.78% |
▷ Class constants | 15 | 65.22% |
▷ Public constants | 15 | 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
3 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/default-theme.png | 45.87KB | 14.60KB | ▼ 68.17% |
admin/images/pwacommerce.png | 17.61KB | 0.53KB | ▼ 96.98% |
admin/images/btn_close_msg.png | 3.09KB | 0.43KB | ▼ 86.13% |