84% schedulista-shortcode

Code Review | Schedulista - Online Scheduling

WordPress plugin Schedulista - Online Scheduling scored84%from 54 tests.

About plugin

  • Plugin page: schedulista-short...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-6.1
  • WordPress version: 6.3.1
  • First release: Oct 7, 2012
  • Latest release: Nov 15, 2022
  • Number of updates: 29
  • Update frequency: every 127.3 days
  • Top authors: schedulista (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /4,168 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼7.53ms] Passed 4 tests

An overview of server-side resources used by Schedulista - Online Scheduling
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.82 ▼2.57
Dashboard /wp-admin3.31 ▼0.0346.97 ▼13.15
Posts /wp-admin/edit.php3.36 ▲0.0143.28 ▲3.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.23 ▼13.75
Media Library /wp-admin/upload.php3.23 ▲0.0134.46 ▼0.66

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Schedulista - Online Scheduling
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.16 ▼1.211.68 ▼0.0942.47 ▼0.66
Dashboard /wp-admin2,203 ▲174.86 ▼0.08116.45 ▲9.3644.42 ▲5.67
Posts /wp-admin/edit.php2,086 ▼31.96 ▼0.0935.15 ▼5.2331.19 ▼4.17
Add New Post /wp-admin/post-new.php1,547 ▲1918.40 ▲0.17741.27 ▲100.4066.86 ▲16.01
Media Library /wp-admin/upload.php1,385 ▼34.23 ▼0.01104.26 ▼7.0946.99 ▲5.42

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

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 no errors were found, this is by no means 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/schedulista-shortcode/schedulista.php:62

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === schedulista-shortcode === )
You can take inspiration from this readme.txt

schedulista-shortcode/schedulista.php 92% from 13 tests

The main PHP file in "Schedulista - Online Scheduling" ver. 2.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("schedulista-shortcode.php" instead of "schedulista.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin46 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19946

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.20
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%
Functions3
▷ Named functions3100.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 are no PNG files in this plugin