72% muzaara-adwords-optimize-dashboard

Code Review | Optimize Your Campaigns - Google Shopping - Google Ads - Google Adwords

WordPress plugin Optimize Your Campaigns - Google Shopping - Google Ads - Google Adwords scored72%from 54 tests.

About plugin

  • Plugin page: muzaara-adwords-o...
  • Plugin version: 3.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.0
  • WordPress version: 6.3.1
  • First release: Oct 7, 2019
  • Latest release: Jul 10, 2022
  • Number of updates: 181
  • Update frequency: every 5.7 days
  • Top authors: muzaara (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

90+ active /16,093 total downloads

Benchmarks

Plugin footprint 83% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.15MB] [CPU: ▼14.84ms] Passed 4 tests

An overview of server-side resources used by Optimize Your Campaigns - Google Shopping - Google Ads - Google Adwords
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.95 ▲0.4938.46 ▼1.10
Dashboard /wp-admin3.90 ▲0.5663.56 ▲3.60
Posts /wp-admin/edit.php3.95 ▲0.6061.06 ▲15.32
Add New Post /wp-admin/post-new.php3.66 ▼2.2238.17 ▼69.80
Media Library /wp-admin/upload.php3.82 ▲0.6042.17 ▲7.93
Muzaara /wp-admin/admin.php?page=muzaara3.7538.53
Settings /wp-admin/admin.php?page=muzaara-settings3.7539.06

Server storage [IO: ▲23.14MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4,522 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
muzaara_plugins
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Optimize Your Campaigns - Google Shopping - Google Ads - Google Adwords
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲14114.81 ▲0.421.68 ▼0.0839.49 ▼3.78
Dashboard /wp-admin2,286 ▲986.62 ▲1.70143.55 ▲41.5656.44 ▲12.38
Posts /wp-admin/edit.php2,178 ▲863.43 ▲1.4463.79 ▲28.0647.63 ▲17.17
Add New Post /wp-admin/post-new.php1,571 ▲2923.28 ▲5.07694.26 ▲47.7143.51 ▼8.91
Media Library /wp-admin/upload.php1,475 ▲875.95 ▲1.71116.30 ▲17.9354.11 ▲13.01
Muzaara /wp-admin/admin.php?page=muzaara1,0006.91171.6741.75
Settings /wp-admin/admin.php?page=muzaara-settings1,0006.63177.8635.34

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • muzaara_plugins
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/muzaara-adwords-optimize-dashboard/lib/muzaara/lib/google-ads-php/scripts/print_php_information.php
    • > /wp-content/plugins/muzaara-adwords-optimize-dashboard/templates/dashboard-widget.php
    • > /wp-content/plugins/muzaara-adwords-optimize-dashboard/templates/footer.php
  • 2286× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/muzaara-adwords-optimize-dashboard/lib/muzaara/lib/google-ads-php/src/Google/Ads/GoogleAds/V8/Resources/LocationView.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/muzaara-adwords-optimize-dashboard/lib/muzaara/lib/google-ads-php/vendor/google/common-protos/src/Cloud/Iam/V1/AuditConfigDelta.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/muzaara-adwords-optimize-dashboard/lib/muzaara/lib/google-ads-php/src/Google/Ads/GoogleAds/V8/Resources/Invoice.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/muzaara-adwords-optimize-dashboard/lib/muzaara/lib/google-ads-php/src/Google/Ads/GoogleAds/V8/Enums/FrequencyCapTimeUnitEnum.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/muzaara-adwords-optimize-dashboard/lib/muzaara/lib/google-ads-php/src/Google/Ads/GoogleAds/V8/Resources/AccessibleBiddingStrategy/TargetRoas.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/muzaara-adwords-optimize-dashboard/lib/muzaara/lib/google-ads-php/src/Google/Ads/GoogleAds/V8/Services/MutateCampaignCriterionResult.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/muzaara-adwords-optimize-dashboard/lib/muzaara/lib/google-ads-php/src/Google/Ads/GoogleAds/V8/Enums/CustomPlaceholderFieldEnum.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Auth\\CredentialsLoader' not found in wp-content/plugins/muzaara-adwords-optimize-dashboard/lib/muzaara/lib/google-ads-php/vendor/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/muzaara-adwords-optimize-dashboard/lib/muzaara/lib/google-ads-php/src/Google/Ads/GoogleAds/V8/Services/GetAssetRequest.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/muzaara-adwords-optimize-dashboard/lib/muzaara/lib/google-ads-php/src/Google/Ads/GoogleAds/V8/Errors/GoogleAdsError.php:16

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=muzaara
    • > Network (severe)
    https://content-partnersbadge-pa.googleapis.com/static/proxy.html?usegapi=1&jsh=m%3B%2F_%2Fscs%2Fabc-static%2F_%2Fjs%2Fk%3Dgapi.lb.en.L92w_vMR5kE.O%2Fd%3D1%2Frs%3DAHpOoo-GjmyR8TQVDKPrbqj5UQg7cU3cCA%2Fm%3D__features__#parent=https%3A%2F%2Fwww.gstatic.com&rpctoken=569417808 - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/admin.php?page=muzaara-settings
    • > Network (severe)
    https://content-partnersbadge-pa.googleapis.com/static/proxy.html?usegapi=1&jsh=m%3B%2F_%2Fscs%2Fabc-static%2F_%2Fjs%2Fk%3Dgapi.lb.en.L92w_vMR5kE.O%2Fd%3D1%2Frs%3DAHpOoo-GjmyR8TQVDKPrbqj5UQg7cU3cCA%2Fm%3D__features__#parent=https%3A%2F%2Fwww.gstatic.com&rpctoken=613845277 - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: adwords, google adwords, google, woocommerce, google ads

muzaara-adwords-optimize-dashboard/muzaara-gads.php 92% from 13 tests

The entry point to "Optimize Your Campaigns - Google Shopping - Google Ads - Google Adwords" version 3.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("muzaara-adwords-optimize-dashboard.php" instead of "muzaara-gads.php")

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 detected364,539 lines of code in 5,373 files:
LanguageFilesBlank linesComment linesLines of code
PHP5,13259,051246,944338,942
JSON1650016,153
Markdown381,81905,669
JavaScript144471502,299
CSS8216271,163
YAML6330118
Protocol Buffers2143864
SVG20057
XML30144
Bourne Shell12011
Dockerfile17410
make1409

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity2.97
▷ Minimum class complexity1.00
▷ Maximum class complexity435.00
Average method complexity1.42
▷ Minimum method complexity1.00
▷ Maximum method complexity75.00
Code structure
Namespaces542
Interfaces43
Traits27
Classes4,751
▷ Abstract classes140.29%
▷ Concrete classes4,73799.71%
▷ Final classes370.78%
Methods21,988
▷ Static methods3,44515.67%
▷ Public methods20,97895.41%
▷ Protected methods2020.92%
▷ Private methods8083.67%
Functions243
▷ Named functions9338.27%
▷ Anonymous functions15061.73%
Constants5,083
▷ Global constants100.20%
▷ Class constants5,07399.80%
▷ Public constants5,04999.53%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 0.55MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-4.png151.02KB53.36KB▼ 64.67%
assets/screenshot-3.png82.26KB32.09KB▼ 61.00%
assets/images/btn_google_signin.png7.81KB3.34KB▼ 57.22%
assets/screenshot-2.png96.91KB36.42KB▼ 62.42%
assets/icon-128x128-old.png6.42KB2.52KB▼ 60.71%