78% skedmaker-online-scheduling

Code Review | Skedmaker

WordPress plugin Skedmaker scored78%from 54 tests.

About plugin

  • Plugin page: skedmaker-online-...
  • Plugin version: 0.98
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Oct 26, 2014
  • Latest release: Feb 1, 2016
  • Number of updates: 167
  • Update frequency: every 2.8 days
  • Top authors: theArab (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

30+ active /5,102 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.00MB] [CPU: ▼5.47ms] Passed 4 tests

This is a short check of server-side resources used by Skedmaker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.47 ▲5.58
Dashboard /wp-admin3.31 ▼0.0354.06 ▼14.59
Posts /wp-admin/edit.php3.37 ▲0.0155.77 ▲4.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.96 ▼13.37
Media Library /wp-admin/upload.php3.24 ▲0.0141.13 ▲1.13

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Skedmaker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲16113.83 ▼0.148.70 ▲7.2542.23 ▼1.25
Dashboard /wp-admin2,207 ▲275.64 ▲0.0086.66 ▼8.0241.32 ▼3.82
Posts /wp-admin/edit.php2,112 ▲151.98 ▼0.0335.24 ▲0.2931.52 ▼5.65
Add New Post /wp-admin/post-new.php1,535 ▲923.09 ▼0.13679.53 ▼47.1354.59 ▲6.44
Media Library /wp-admin/upload.php1,412 ▲124.21 ▲0.05118.39 ▲18.2248.72 ▲4.91

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/skedmaker-online-scheduling/_admin/_default.php
  • 52× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SM_title() in wp-content/plugins/skedmaker-online-scheduling/_admin/_blackouts.php:103
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SM_total() in wp-content/plugins/skedmaker-online-scheduling/_admin/_noshows.php:147
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/skedmaker-online-scheduling/_include/sm-styles.php:5
    • > PHP Fatal error
      Uncaught Error: Call to a member function query() on null in wp-content/plugins/skedmaker-online-scheduling/_include/sm-build-db.php:36
    • > PHP Notice
      Undefined index: list in wp-content/plugins/skedmaker-online-scheduling/_admin/_appointments.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/skedmaker-online-scheduling/index.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SM_menu() in wp-content/plugins/skedmaker-online-scheduling/_admin/_default.php:139
    • > PHP Notice
      Undefined variable: smadmin in wp-content/plugins/skedmaker-online-scheduling/_admin/_email_notices.php on line 99
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SM_delete_check() in wp-content/plugins/skedmaker-online-scheduling/_admin/_services.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SM_title() in wp-content/plugins/skedmaker-online-scheduling/_admin/_options.php:78

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (skedmaker-screenshot-1.png), #2 (skedmaker-screenshot-2.png), #3 (skedmaker-screenshot-3.png), #4 (skedmaker-screenshot-4.png), #5 (skedmaker-screenshot-5.png)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === skedmaker-online-scheduling === )
You can take inspiration from this readme.txt

skedmaker-online-scheduling/wp-skedmaker.php 92% from 13 tests

The primary PHP file in "Skedmaker" version 0.98 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("skedmaker-online-scheduling.php" instead of "wp-skedmaker.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin7,499 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP306,3307057,499

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions105
▷ Named functions105100.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
121 PNG files occupy 0.26MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
_btns/btn_contact16b_reg.png1.76KB0.98KB▼ 44.35%
_btns/btn_sked32_reg.png2.98KB1.54KB▼ 48.21%
_btns/btn_purge16_reg.png0.55KB0.66KB0.00%
_btns/btn_dbbak32_reg.png1.62KB1.57KB▼ 2.96%
_btns/btn_myaccount16_reg.png0.72KB0.68KB▼ 5.01%