Benchmarks
Plugin footprint 82% 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 gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼138.86ms] Passed 4 tests
Analyzing server-side resources used by Muzaara Content API Google Data Feed
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 28.45 ▲6.24 |
Dashboard /wp-admin | 3.06 ▲0.00 | 42.17 ▲1.70 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 43.42 ▲1.67 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 82.72 ▼554.21 |
Media Library /wp-admin/upload.php | 3.00 ▼0.01 | 31.75 ▼4.59 |
Server storage [IO: ▲29.12MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
- Total filesystem usage should be limited to 25MB (currently using 29.12MB)
Filesystem: 6,389 new files
Database: no new tables, 1 new option
New WordPress options |
---|
muzaara_plugins |
Browser metrics Passed 4 tests
Muzaara Content API Google Data Feed: 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 / | 3,679 ▲83 | 16.25 ▲0.72 | 8.42 ▼1.35 | 45.63 ▼2.76 |
Dashboard /wp-admin | 2,970 ▲36 | 5.91 ▼0.26 | 135.71 ▼6.19 | 115.47 ▲3.31 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.00 | 65.45 ▼0.73 | 91.34 ▲3.33 |
Add New Post /wp-admin/post-new.php | 1,604 ▲104 | 18.84 ▲0.19 | 367.80 ▲8.02 | 104.39 ▼3.52 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.01 ▲0.01 | 142.83 ▼2.42 | 117.01 ▲3.88 |
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 1 option in the database
- muzaara_plugins
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
Even though everything seems fine, this is not an exhaustive test
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 fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/muzaara-google-content-api-data-feed/lib/muzaara/lib/google-ads-php/scripts/print_php_information.php
- 3573× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/muzaara-google-content-api-data-feed/src/lib/muzaara/lib/google-api-php-client-2.8.3/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderDeliveryDetails.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/muzaara-google-content-api-data-feed/lib/muzaara/lib/google-ads-php/src/Google/Ads/GoogleAds/V8/Services/MutateFeedMappingsResponse.php:16
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/muzaara-google-content-api-data-feed/src/lib/muzaara/lib/google-api-php-client-2.8.3/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ListAccountLabelsResponse.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/muzaara-google-content-api-data-feed/src/lib/muzaara/lib/google-api-php-client-2.8.3/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ShipmentTrackingInfo.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/muzaara-google-content-api-data-feed/src/lib/muzaara/lib/google-api-php-client-2.8.3/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderMerchantProvidedAnnotation.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/muzaara-google-content-api-data-feed/lib/muzaara/lib/google-ads-php/src/Google/Ads/GoogleAds/V8/Services/PromoteCampaignDraftRequest.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Google\\Auth\\FetchAuthTokenInterface' not found in wp-content/plugins/muzaara-google-content-api-data-feed/src/lib/muzaara/lib/google-api-php-client-2.8.3/vendor/google/auth/src/OAuth2.php:36
- > PHP Fatal error
Trait 'Google\\ApiCore\\GapicClientTrait' not found in wp-content/plugins/muzaara-google-content-api-data-feed/lib/muzaara/lib/google-ads-php/src/Google/Ads/GoogleAds/V8/Services/Gapic/MobileDeviceConstantServiceGapicClient.php on line 61
- > PHP Fatal error
Uncaught Error: Class 'Google\\Collection' not found in wp-content/plugins/muzaara-google-content-api-data-feed/lib/muzaara/lib/google-api-php-client/vendor/google/apiclient-services/src/ShoppingContent/DatafeedStatus.php:20
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/muzaara-google-content-api-data-feed/lib/muzaara/lib/google-ads-php/src/Google/Ads/GoogleAds/V8/Services/MutateExtensionFeedItemResult.php:16
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 90% 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
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (Connect your Google Ads Account)
muzaara-google-content-api-data-feed/muzaara-product-feed.php 85% from 13 tests
The main file in "Muzaara Content API Google Data Feed" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("muzaara-google-content-api-data-feed.php" instead of "muzaara-product-feed.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected476,026 lines of code in 6,749 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6,477 | 75,666 | 312,561 | 448,773 |
JSON | 180 | 0 | 0 | 15,888 |
Markdown | 54 | 2,950 | 0 | 9,194 |
JavaScript | 12 | 192 | 2 | 1,496 |
YAML | 9 | 39 | 1 | 174 |
Python | 2 | 44 | 50 | 149 |
CSS | 1 | 25 | 2 | 124 |
XML | 7 | 0 | 1 | 100 |
Protocol Buffers | 2 | 14 | 38 | 64 |
SVG | 1 | 0 | 0 | 31 |
Bourne Shell | 2 | 4 | 0 | 14 |
Dockerfile | 1 | 7 | 4 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 106)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 4.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 660.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 106.00 |
Code structure | ||
---|---|---|
Namespaces | 600 | |
Interfaces | 120 | |
Traits | 49 | |
Classes | 6,373 | |
▷ Abstract classes | 243 | 3.81% |
▷ Concrete classes | 6,130 | 96.19% |
▷ Final classes | 98 | 1.60% |
Methods | 33,552 | |
▷ Static methods | 4,297 | 12.81% |
▷ Public methods | 31,291 | 93.26% |
▷ Protected methods | 759 | 2.26% |
▷ Private methods | 1,502 | 4.48% |
Functions | 695 | |
▷ Named functions | 258 | 37.12% |
▷ Anonymous functions | 437 | 62.88% |
Constants | 5,942 | |
▷ Global constants | 56 | 0.94% |
▷ Class constants | 5,886 | 99.06% |
▷ Public constants | 5,822 | 98.91% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.36MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
asset/image/btn_google_signin.png | 7.81KB | 3.34KB | ▼ 57.22% |
asset/image/btn_google_signin_focus.png | 8.28KB | 3.49KB | ▼ 57.82% |
src/asset/image/btn_google_signin.png | 7.81KB | 3.34KB | ▼ 57.22% |
src/asset/image/btn_google_signin_focus.png | 8.28KB | 3.49KB | ▼ 57.82% |
asset/screenshot-1.png | 44.56KB | 14.10KB | ▼ 68.35% |