84% upcoming-for-calendly

Code Review | Upcoming for Calendly

WordPress plugin Upcoming for Calendly scored84%from 54 tests.

About plugin

  • Plugin page: upcoming-for-cale...
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: Apr 19, 2023
  • Latest release: Apr 19, 2023
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: justdave (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /413 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Upcoming for Calendly
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.77 ▲1.85
Dashboard /wp-admin3.31 ▼0.0446.08 ▼14.00
Posts /wp-admin/edit.php3.36 ▲0.0043.33 ▼2.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.31 ▼12.68
Media Library /wp-admin/upload.php3.23 ▲0.0037.85 ▲5.72
Upcoming Events for Calendly /wp-admin/options-general.php?page=uefc-settings3.2029.91

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Upcoming for Calendly
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.35 ▼0.031.69 ▲0.0647.90 ▲8.92
Dashboard /wp-admin2,202 ▲225.67 ▲0.0982.84 ▼4.9737.70 ▼0.96
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0635.76 ▲0.6333.53 ▼4.95
Add New Post /wp-admin/post-new.php1,534 ▲823.11 ▲0.21655.46 ▲9.4162.61 ▲7.64
Media Library /wp-admin/upload.php1,404 ▲14.21 ▲0.04106.94 ▲1.8647.52 ▲2.07
Upcoming Events for Calendly /wp-admin/options-general.php?page=uefc-settings8221.9924.5529.29

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/upcoming-for-calendly/includes/settings.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/upcoming-for-calendly/includes/shortcode.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/upcoming-for-calendly/includes/settings.php:20

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: calendly, calendly-api

upcoming-for-calendly/upcoming-for-calendly.php Passed 13 tests

The principal PHP file in "Upcoming for Calendly" v. 1.2.3 is loaded by WordPress automatically on each request
46 characters long description:
Upcoming Events Registration List for Calendly

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin179 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP41192152
Markdown220027

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png6.79KB3.63KB▼ 46.59%
assets/icon-256x256.png15.15KB7.73KB▼ 48.98%
assets/screenshot-1.png18.58KB9.87KB▼ 46.87%
assets/screenshot-2.png3.71KB2.48KB▼ 33.04%