Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲1.04MB] [CPU: ▼0.66ms] Passed 4 tests
Analyzing server-side resources used by ShopApper: Mobile App for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.48 ▲1.01 | 45.86 ▲7.05 |
Dashboard /wp-admin | 4.38 ▲1.07 | 50.90 ▼4.69 |
Posts /wp-admin/edit.php | 4.43 ▲1.07 | 46.74 ▼0.30 |
Add New Post /wp-admin/post-new.php | 7.02 ▲1.13 | 96.94 ▼4.70 |
Media Library /wp-admin/upload.php | 4.24 ▲1.01 | 41.16 ▲7.33 |
Server storage [IO: ▲13.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2,091 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for ShopApper: Mobile App for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲47 | 14.67 ▲0.53 | 1.79 ▲0.04 | 43.11 ▼3.08 |
Dashboard /wp-admin | 2,214 ▲40 | 5.60 ▲0.06 | 86.53 ▼12.97 | 77.43 ▲31.01 |
Posts /wp-admin/edit.php | 2,119 ▲22 | 1.99 ▼0.01 | 37.02 ▲0.27 | 34.66 ▲0.48 |
Add New Post /wp-admin/post-new.php | 1,543 ▲7 | 23.68 ▲0.48 | 732.27 ▲25.39 | 55.83 ▲1.90 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.27 ▲0.11 | 101.55 ▼0.39 | 63.27 ▲19.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/mobile-app-for-woocommerce/mobile-app-for-woocommerce.php
- 2044× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/mobile-app-for-woocommerce/includes/Twilio/Rest/Trunking/V1/TrunkPage.php:16
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/mobile-app-for-woocommerce/includes/Twilio/Rest/Preview/Understand/Assistant/ModelBuildOptions.php:41
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/mobile-app-for-woocommerce/includes/Twilio/Rest/Preview/TrustedComms/CurrentCallOptions.php:29
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/mobile-app-for-woocommerce/includes/Twilio/Rest/Verify/V2/ServiceContext.php:41
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/mobile-app-for-woocommerce/includes/Twilio/Rest/Numbers/V2/RegulatoryCompliance/RegulationList.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/mobile-app-for-woocommerce/includes/Twilio/Rest/Trunking/V1/Trunk/RecordingContext.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/mobile-app-for-woocommerce/includes/Twilio/Rest/Messaging/V1/UsecasePage.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/mobile-app-for-woocommerce/includes/Twilio/Rest/Sync/V1/ServiceOptions.php:65
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/mobile-app-for-woocommerce/includes/Twilio/Rest/Conversations/V1/Conversation/ParticipantOptions.php:78
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/mobile-app-for-woocommerce/includes/Twilio/Rest/Api/V2010/Account/RecordingOptions.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: react native, mobile app builder, e-commerce, app, woocommerce...
mobile-app-for-woocommerce/mobile-app-for-woocommerce.php 85% from 13 tests
"ShopApper: Mobile App for WooCommerce" version 0.4.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Plugin Name: Keep the plugin name shorter than 70 characters (currently 76 characters long)
- Requires PHP: Required version must match the one declared in readme.txt ("7.0" instead of "7.2")
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
No dangerous file extensions were detected100,109 lines of code in 2,081 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2,075 | 29,846 | 115,066 | 100,076 |
CSS | 4 | 15 | 41 | 25 |
JavaScript | 2 | 4 | 5 | 8 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 2.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 1.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 207 | |
Interfaces | 2 | |
Traits | 1 | |
Classes | 2,568 | |
▷ Abstract classes | 288 | 11.21% |
▷ Concrete classes | 2,280 | 88.79% |
▷ Final classes | 1 | 0.04% |
Methods | 13,942 | |
▷ Static methods | 541 | 3.88% |
▷ Public methods | 12,528 | 89.86% |
▷ Protected methods | 1,406 | 10.08% |
▷ Private methods | 8 | 0.06% |
Functions | 131 | |
▷ Named functions | 14 | 10.69% |
▷ Anonymous functions | 117 | 89.31% |
Constants | 21 | |
▷ Global constants | 5 | 23.81% |
▷ Class constants | 16 | 76.19% |
▷ Public constants | 16 | 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
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/icon.png | 1.42KB | 1.35KB | ▼ 4.54% |