79% wp-google-calendar

Code Review | WP Google Calendar

WordPress plugin WP Google Calendar scored79%from 54 tests.

About plugin

  • Plugin page: wp-google-calendar
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 16, 2016
  • Latest release: Mar 9, 2020
  • Number of updates: 32
  • Update frequency: every 46.3 days
  • Top authors: h4hardik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /5,308 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.03ms] Passed 4 tests

An overview of server-side resources used by WP Google Calendar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.72 ▼0.45
Dashboard /wp-admin3.32 ▲0.0248.96 ▼3.72
Posts /wp-admin/edit.php3.37 ▲0.0153.11 ▲0.86
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.95 ▼8.82
Media Library /wp-admin/upload.php3.24 ▲0.0137.84 ▲1.34
Settings /wp-admin/admin.php?page=wp-google-calendar-settings3.2132.79
All Events /wp-admin/admin.php?page=wp-google-calendar-plg3.1932.39
Documentation /wp-admin/admin.php?page=wp-google-calendar-documentation3.2131.68

Server storage [IO: ▲3.29MB] [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: 128 new files
Database: 2 new tables, 8 new options
New tables
wp_google_events
wp_google_api_setting
New WordPress options
api_setting_database_version
widget_recent-comments
events_database_version
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Google Calendar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,000 ▲21414.73 ▲0.4412.51 ▲10.5351.14 ▲9.75
Dashboard /wp-admin2,218 ▲415.06 ▼0.4887.24 ▼1.5280.09 ▲38.59
Posts /wp-admin/edit.php2,138 ▲352.48 ▲0.5040.58 ▲5.4138.01 ▲0.89
Add New Post /wp-admin/post-new.php1,559 ▲3323.77 ▲0.59663.16 ▼36.0738.29 ▼14.61
Media Library /wp-admin/upload.php1,432 ▲354.56 ▲0.35102.91 ▼5.2877.33 ▲33.04
Settings /wp-admin/admin.php?page=wp-google-calendar-settings8832.0031.5837.99
All Events /wp-admin/admin.php?page=wp-google-calendar-plg7071.579.0620.48
Documentation /wp-admin/admin.php?page=wp-google-calendar-documentation9522.0226.5754.11

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_google_api_setting
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • api_setting_database_version
    • events_database_version
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Contributors: The plugin contributors field is not present
You can take inspiration from this readme.txt

wp-google-calendar/wp-google-calendar.php Passed 13 tests

The primary PHP file in "WP Google Calendar" version 2.0.0 is used by WordPress to initiate all plugin functionality
55 characters long description:
Wordpress plugin to manage your google calendar events.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin3,710 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS73362292,375
PHP31461781,167
JavaScript401694
Markdown224074

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity5.62
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
96 PNG files occupy 2.74MB with 1.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/2.png23.32KB10.57KB▼ 54.70%
img/ui-bg_highlight-soft_75_ffe45c_1x100.png0.32KB0.18KB▼ 42.38%
new_branch/img/ui-bg_gloss-wave_35_f6a828_500x100.png5.68KB1.83KB▼ 67.77%
img/Screenshots/screenshot-5.png70.42KB35.08KB▼ 50.19%
new_branch/img/7.png49.94KB22.78KB▼ 54.38%