89% add-classes-to-googles-calendar

Code Review | Plugin Name: Add classes to Google Calendar

WordPress plugin Plugin Name: Add classes to Google Calendar scored 89% from 54 tests.

About plugin

  • Plugin page: add-classes-to-go...
  • Plugin version: 1...
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.2
  • WordPress version: 5.9.2
  • First release: Jan 7, 2020
  • Latest release: Jan 7, 2020
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: dessainsaraiva (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 271 total downloads


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

Server metrics [RAM: ▼2.50MB] [CPU: ▼344.68ms] Passed 4 tests

Analyzing server-side resources used by Plugin Name: Add classes to Google Calendar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.87 ▼1.653.89 ▼46.56
Dashboard /wp-admin1.89 ▼1.523.34 ▼29.53
Posts /wp-admin/edit.php1.89 ▼1.753.31 ▼33.92
Add New Post /wp-admin/post-new.php1.89 ▼5.094.28 ▼1,268.69
Media Library /wp-admin/upload.php1.89 ▼1.414.02 ▼19.82

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Plugin Name: Add classes to Google Calendar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲4616.55 ▲0.317.42 ▲1.593.11 ▲0.33
Dashboard /wp-admin2,897 ▲366.41 ▲0.08117.78 ▼25.48157.32 ▼7.46
Posts /wp-admin/edit.php2,693 ▼13.43 ▼0.0062.70 ▼3.00141.62 ▼2.42
Add New Post /wp-admin/post-new.php1,692 ▲3121.03 ▲4.38426.96 ▼1.56158.82 ▲15.21
Media Library /wp-admin/upload.php1,700 ▼15.67 ▼0.05134.59 ▼3.11191.88 ▲4.03

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
The following items require your attention
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5768
    wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the booking-sync handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

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
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Contributors: Contributors not specified
  • Plugin Name: Please specify the plugin name on the first line ( === Plugin Name: Add classes to Google Calendar === )
You can look at the official readme.txt

add-classes-to-googles-calendar/add-classes-to-google-calendar.php 85% from 13 tests

This is the main PHP file of "Plugin Name: Add classes to Google Calendar" version 1..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "1...")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("add-classes-to-googles-calendar.php" instead of "add-classes-to-google-calendar.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
Good job! No executable or dangerous file extensions detected43 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
No PNG images were found in this plugin