84% seamless-schedule-free

Code Review | Seamless Schedule

WordPress plugin Seamless Schedule scored84%from 54 tests.

About plugin

  • Plugin page: seamless-schedule...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.0-5.8
  • WordPress version: 6.3.1
  • First release: Aug 21, 2021
  • Latest release: Aug 22, 2021
  • Number of updates: 2
  • Update frequency: every 4.5 days
  • Top authors: seamlessdigital (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /341 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼5.17ms] Passed 4 tests

This is a short check of server-side resources used by Seamless Schedule
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1239.50 ▲1.20
Dashboard /wp-admin3.42 ▲0.1142.10 ▼4.97
Posts /wp-admin/edit.php3.53 ▲0.1745.99 ▼0.95
Add New Post /wp-admin/post-new.php6.02 ▲0.1375.43 ▼15.96
Media Library /wp-admin/upload.php3.34 ▲0.1135.66 ▲1.40

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Seamless Schedule
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲7814.72 ▲0.341.58 ▼0.4036.61 ▼9.87
Dashboard /wp-admin2,227 ▲395.05 ▼0.84113.11 ▲7.7444.70 ▼2.88
Posts /wp-admin/edit.php2,107 ▲182.48 ▲0.4735.43 ▼3.1230.83 ▼3.44
Add New Post /wp-admin/post-new.php6,657 ▲5,13826.18 ▲3.001,078.68 ▲338.5360.28 ▲2.77
Media Library /wp-admin/upload.php1,403 ▲184.43 ▲0.2197.18 ▼2.0140.86 ▼3.21

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 detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/seamless-schedule-free/seamless-schedule.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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 to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can take inspiration from this readme.txt

seamless-schedule-free/seamless-schedule.php 92% from 13 tests

"Seamless Schedule" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("seamless-schedule-free.php" instead of "seamless-schedule.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin410 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP87815390
JavaScript20019
CSS1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity6.14
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods38
▷ Static methods615.79%
▷ Public methods3694.74%
▷ Protected methods12.63%
▷ Private methods12.63%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.00%
Constants8
▷ Global constants562.50%
▷ Class constants337.50%
▷ Public constants3100.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