84% optix-calendar

Code Review | Optix calendar

WordPress plugin Optix calendar scored84%from 54 tests.

About plugin

  • Plugin page: optix-calendar
  • Plugin version: 21.11.33
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: Mar 21, 2021
  • Latest release: Dec 1, 2021
  • Number of updates: 14
  • Update frequency: every 18.3 days
  • Top authors: optixcloud (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /499 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Server-side resources used by Optix calendar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.09 ▲3.11
Dashboard /wp-admin3.32 ▲0.0148.09 ▼4.07
Posts /wp-admin/edit.php3.37 ▲0.0149.98 ▼8.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.41 ▼16.21
Media Library /wp-admin/upload.php3.24 ▲0.0136.42 ▼0.82
Optix calendar /wp-admin/options-general.php?page=optix-calendar3.2132.41

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Optix calendar: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲7020.04 ▲5.4236.27 ▲34.4947.39 ▲3.97
Dashboard /wp-admin2,202 ▲225.52 ▼0.0384.17 ▼11.5939.38 ▼2.62
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0139.50 ▼2.7338.13 ▲0.55
Add New Post /wp-admin/post-new.php1,530 ▲423.23 ▼0.29670.05 ▲0.4251.25 ▼1.44
Media Library /wp-admin/upload.php1,407 ▲74.19 ▼0.0298.28 ▼22.6445.07 ▼0.55
Optix calendar /wp-admin/options-general.php?page=optix-calendar8062.0222.6927.24

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× 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/optix-calendar/optix-calendar.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

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
Attributes that need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2 in optix-calendar/assets to your readme.txt
The official readme.txt is a good inspiration

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

This is the main PHP file of "Optix calendar" version 21.11.33, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
120 characters long description:
Integra il calendario di Optix nel tuo sito web per permettere ai tuoi clienti di prenotare appuntamenti in pochi click.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin54 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1132454

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin