84% schedule-builder-online

Code Review | Schedule Builder Online

WordPress plugin Schedule Builder Online scored 84% from 54 tests.

About plugin

  • Plugin page: schedule-builder-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 13, 2018
  • Latest release: Nov 27, 2018
  • Number of updates: 7
  • Update frequency: every 15.2 days
  • Top authors: henriksan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 900 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Schedule Builder Online
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.44 ▼3.88
Dashboard /wp-admin3.31 ▲0.0146.03 ▼1.78
Posts /wp-admin/edit.php3.36 ▲0.0148.61 ▲1.45
Add New Post /wp-admin/post-new.php5.91 ▲0.0383.65 ▲1.83
Media Library /wp-admin/upload.php3.24 ▲0.0131.98 ▼5.30

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Schedule Builder Online
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲3213.32 ▼1.531.57 ▼0.3137.60 ▼4.51
Dashboard /wp-admin2,227 ▲214.90 ▼0.96107.92 ▲14.2238.09 ▼1.80
Posts /wp-admin/edit.php2,110 ▲212.03 ▼0.0235.19 ▲1.6831.56 ▼4.45
Add New Post /wp-admin/post-new.php1,550 ▲1623.23 ▼0.02684.43 ▼5.3861.45 ▲8.14
Media Library /wp-admin/upload.php1,403 ▲154.12 ▼0.0895.37 ▼14.7441.79 ▼8.78

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/schedule-builder-online/schedule-builder-online.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: weekly schedule, schedule builder, schedule maker, calendar, schedule...

schedule-builder-online/schedule-builder-online.php Passed 13 tests

"Schedule Builder Online" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
79 characters long description:
Easily embed schedules created with our free schedule maker to posts and pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected916 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript45154367
CSS2021340
PHP24469209

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin