83% daily-routine-with-google-calendar

Code Review | Daily Routine with Google Calendar

WordPress plugin Daily Routine with Google Calendar scored83%from 54 tests.

About plugin

  • Plugin page: daily-routine-wit...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.2.2
  • WordPress version: 6.3.1
  • First release: Jul 9, 2019
  • Latest release: Jul 9, 2019
  • Number of updates: 15
  • Update frequency: N/A
  • Top authors: life2learn (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /726 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.65ms] Passed 4 tests

This is a short check of server-side resources used by Daily Routine with Google Calendar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.94 ▲2.42
Dashboard /wp-admin3.33 ▼0.0246.27 ▼11.81
Posts /wp-admin/edit.php3.38 ▲0.0244.63 ▼4.08
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.12 ▼25.11
Media Library /wp-admin/upload.php3.25 ▲0.0239.64 ▲4.54

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Daily Routine with Google Calendar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲15714.01 ▼0.368.07 ▲6.4141.54 ▲2.88
Dashboard /wp-admin2,229 ▲495.12 ▼0.5897.94 ▲13.0038.96 ▼3.93
Posts /wp-admin/edit.php2,131 ▲342.26 ▲0.2543.67 ▲7.9931.98 ▼4.44
Add New Post /wp-admin/post-new.php1,393 ▼13317.36 ▼5.97618.99 ▼14.2130.73 ▼19.06
Media Library /wp-admin/upload.php1,431 ▲314.65 ▲0.45112.73 ▲12.0846.11 ▲2.55

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/daily-routine-with-google-calendar/daily-routine.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed: The official readme.txt might help

daily-routine-with-google-calendar/daily-routine.php 85% from 13 tests

The main PHP script in "Daily Routine with Google Calendar" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("daily-routine-with-google-calendar.php" instead of "daily-routine.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
There were no executable files found in this plugin134 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP14813102
JavaScript5175929
CSS30123

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.03
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin