84% awesome-google-plus

Code Review | Awesome Google+ Plugins

WordPress plugin Awesome Google+ Plugins scored84%from 54 tests.

About plugin

  • Plugin page: awesome-google-plus
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Apr 14, 2017
  • Latest release: Oct 26, 2018
  • Number of updates: 10
  • Update frequency: every 56.0 days
  • Top authors: raihancse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /557 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.30ms] Passed 4 tests

A check of server-side resources used by Awesome Google+ Plugins
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.77 ▲2.45
Dashboard /wp-admin3.34 ▲0.0348.40 ▼3.54
Posts /wp-admin/edit.php3.39 ▲0.0353.16 ▼3.25
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.51 ▼17.13
Media Library /wp-admin/upload.php3.26 ▲0.0335.86 ▼5.29

Server storage [IO: ▲0.01MB] [DB: ▲0.31MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_sm_google_plus_follow_button
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Awesome Google+ Plugins
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.091.64 ▼0.0540.73 ▼2.77
Dashboard /wp-admin2,195 ▲185.62 ▼0.0290.17 ▲0.9440.50 ▼0.25
Posts /wp-admin/edit.php2,103 ▲31.99 ▼0.0239.65 ▲2.1137.19 ▲0.56
Add New Post /wp-admin/post-new.php1,526 ▼023.59 ▲0.57654.84 ▼0.1457.02 ▲5.36
Media Library /wp-admin/upload.php1,403 ▼04.21 ▲0.0299.81 ▲0.5245.12 ▲2.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_sm_google_plus_follow_button
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% 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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/awesome-google-plus/sm-google-plus.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/awesome-google-plus/includes/sm_google_plus_follow_button.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === awesome-google-plus === )
You can look at the official readme.txt

awesome-google-plus/sm-google-plus.php 92% from 13 tests

The main PHP script in "Awesome Google+ Plugins" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("awesome-google-plus.php" instead of "sm-google-plus.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin114 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22716114

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin