10% solo-calendar

Code Review | SoloCalendar

WordPress plugin SoloCalendar scored10%from 54 tests.

About plugin

  • Plugin page: solo-calendar
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.2
  • WordPress version: 6.3.1
  • First release: Aug 6, 2015
  • Latest release: Aug 10, 2015
  • Number of updates: 14
  • Update frequency: every 0.3 days
  • Top authors: gvalex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /580 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/solo-calendar/solo-calendar.php+35
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼51.35ms] Passed 4 tests

Analyzing server-side resources used by SoloCalendar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.47 ▼33.24
Dashboard /wp-admin2.05 ▼1.265.57 ▼40.53
Posts /wp-admin/edit.php2.05 ▼1.317.31 ▼40.89
Add New Post /wp-admin/post-new.php2.05 ▼3.845.06 ▼90.72
Media Library /wp-admin/upload.php2.05 ▼1.186.14 ▼30.03

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_solo_calendar_widget

Browser metrics Passed 4 tests

An overview of browser requirements for SoloCalendar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲8213.18 ▼1.111.74 ▲0.0138.45 ▼14.07
Dashboard /wp-admin2,223 ▲355.86 ▼0.0495.90 ▼9.5583.76 ▲37.14
Posts /wp-admin/edit.php2,103 ▲141.98 ▲0.0038.26 ▲3.6534.88 ▲1.41
Add New Post /wp-admin/post-new.php1,682 ▲14922.06 ▼1.06675.49 ▲42.4341.49 ▼8.48
Media Library /wp-admin/upload.php1,405 ▲144.25 ▼0.0494.74 ▲0.8574.13 ▲31.97

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
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/solo-calendar/solo-calendar.php+35
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_solo_calendar_widget
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/solo-calendar/solo-calendar.php
    • > /wp-content/plugins/solo-calendar/admin/about.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/solo-calendar/admin/settings.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/solo-calendar/tinymce-plugin.js.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/solo-calendar/widget.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
2 plugin tags: solocalendar, solo

solo-calendar/solo-calendar.php Passed 13 tests

The main PHP script in "SoloCalendar" version 1.2 is automatically included on every request by WordPress
107 characters long description:
This plugin adds a little button in your post editor with all booking forms from your SoloCalendar account.

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 plugin256 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP65622250
CSS1003
LESS1043

PHP code Passed 2 tests

This is a very shot review 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.40
Average class complexity12.00
▷ Minimum class complexity8.00
▷ Maximum class complexity16.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods211.76%
▷ Public methods1588.24%
▷ Protected methods00.00%
▷ Private methods211.76%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
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
images/logo16.png0.40KB0.48KB0.00%
images/logo24.png0.49KB0.58KB0.00%
images/logo64.png17.74KB0.44KB▼ 97.53%
images/logo.png19.54KB0.44KB▼ 97.77%