84% mm-google-connect

Code Review | MM Google Connection

WordPress plugin MM Google Connection scored84%from 54 tests.

About plugin

  • Plugin page: mm-google-connect
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Oct 21, 2015
  • Latest release: Nov 19, 2015
  • Number of updates: 5
  • Update frequency: every 6.0 days
  • Top authors: rodtech (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /779 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼8.15ms] Passed 4 tests

A check of server-side resources used by MM Google Connection
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.34 ▼1.83
Dashboard /wp-admin3.37 ▲0.0252.86 ▼14.41
Posts /wp-admin/edit.php3.42 ▲0.0649.09 ▼6.46
Add New Post /wp-admin/post-new.php5.95 ▲0.0698.57 ▼9.88
Media Library /wp-admin/upload.php3.29 ▲0.0641.39 ▲3.31

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 141 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for MM Google Connection
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.32 ▲0.051.85 ▼0.2445.05 ▲2.53
Dashboard /wp-admin2,195 ▲185.66 ▲0.0696.57 ▲3.9745.36 ▼0.92
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0137.86 ▼0.3233.85 ▼0.62
Add New Post /wp-admin/post-new.php1,526 ▼023.31 ▲0.21648.81 ▼9.6458.46 ▲1.19
Media Library /wp-admin/upload.php1,394 ▼64.24 ▲0.0198.71 ▼9.3043.73 ▼4.67

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 91× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/mm-google-connect/google_lib/Service/Taskqueue.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/mm-google-connect/google_lib/Service/Proximitybeacon.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/mm-google-connect/google_lib/Service/Appengine.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/mm-google-connect/google_lib/Service/Customsearch.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/mm-google-connect/google_lib/Service/Storagetransfer.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/mm-google-connect/google_lib/Service/ShoppingContent.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/mm-google-connect/google_lib/Service/Reseller.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/mm-google-connect/google_lib/Service/Autoscaler.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/mm-google-connect/google_lib/Service/Compute.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/mm-google-connect/google_lib/Service/QPXExpress.php:32

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
5 plugin tags: signup, google signup, google, social login, google connect

mm-google-connect/mm-google-connection.php 85% from 13 tests

"MM Google Connection" version 1...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "1...")
  • Main file name: Name the main plugin file the same as the plugin slug ("mm-google-connect.php" instead of "mm-google-connection.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin190,880 lines of code in 138 files:
LanguageFilesBlank linesComment linesLines of code
PHP13712,31536,138190,878
Markdown1002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.01
Average class complexity1.16
▷ Minimum class complexity1.00
▷ Maximum class complexity61.00
Average method complexity1.02
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes3,541
▷ Abstract classes60.17%
▷ Concrete classes3,53599.83%
▷ Final classes00.00%
Methods27,403
▷ Static methods130.05%
▷ Public methods27,33599.75%
▷ Protected methods300.11%
▷ Private methods380.14%
Functions18
▷ Named functions1794.44%
▷ Anonymous functions15.56%
Constants291
▷ Global constants00.00%
▷ Class constants291100.00%
▷ Public constants291100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin