84% add-to-calendar-button

Code Review | Add to Calendar Button

WordPress plugin Add to Calendar Button scored84%from 54 tests.

About plugin

  • Plugin page: add-to-calendar-b...
  • Plugin version: 1.6.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4
  • WordPress version: 6.3.1
  • First release: Jan 16, 2023
  • Latest release: Nov 8, 2023
  • Number of updates: 28
  • Update frequency: every 10.6 days
  • Top authors: add2cal (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /11,029 total downloads


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
This plugin's installer ran successfully

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

Server-side resources used by Add to Calendar Button
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.86 ▼4.99
Dashboard /wp-admin3.32 ▲0.0146.44 ▼2.08
Posts /wp-admin/edit.php3.37 ▲0.0143.38 ▼1.81
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.14 ▼6.60
Media Library /wp-admin/upload.php3.24 ▲0.0135.00 ▼0.20

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Add to Calendar Button: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7214.65 ▲0.312.59 ▲0.7145.06 ▼1.78
Dashboard /wp-admin2,188 ▲85.98 ▲0.3491.13 ▼5.2742.96 ▲1.45
Posts /wp-admin/edit.php2,102 ▲22.42 ▲0.4234.63 ▼3.1831.97 ▼1.89
Add New Post /wp-admin/post-new.php6,195 ▲4,66919.42 ▼4.12905.72 ▲213.3137.31 ▼30.44
Media Library /wp-admin/upload.php1,402 ▲24.59 ▲0.37103.58 ▼4.4440.86 ▼7.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-to-calendar-button/add-to-calendar-button.php:54

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can look at the official readme.txt

add-to-calendar-button/add-to-calendar-button.php Passed 13 tests

The entry point to "Add to Calendar Button" version 1.6.0 is a PHP file that has certain tags in its header comment area
73 characters long description:
Create beautiful buttons, where people can add events to their calendars.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected975 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PO File131820608

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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 functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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