79% my-schedule

Code Review | My schedule WordPress plugin

WordPress plugin My schedule WordPress plugin scored79%from 54 tests.

About plugin

  • Plugin page: my-schedule
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.8
  • WordPress version: 6.3.1
  • First release: Mar 4, 2021
  • Latest release: Aug 29, 2021
  • Number of updates: 5
  • Update frequency: every 35.6 days
  • Top authors: milosz.galazka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /392 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 gracefully, with no errors

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

Analyzing server-side resources used by My schedule WordPress plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.31 ▼3.21
Dashboard /wp-admin3.32 ▼0.0350.12 ▼14.05
Posts /wp-admin/edit.php3.37 ▲0.0147.56 ▼2.60
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.99 ▼10.00
Media Library /wp-admin/upload.php3.24 ▲0.0133.31 ▼1.13
My schedule /wp-admin/index.php?page=my_schedule3.1833.72
My schedule /wp-admin/options-general.php?page=my-schedule3.2134.35

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for My schedule WordPress plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.34 ▼0.031.72 ▼0.0342.28 ▲0.74
Dashboard /wp-admin2,205 ▲255.62 ▼0.0482.31 ▼7.2935.09 ▼5.00
Posts /wp-admin/edit.php2,110 ▲102.02 ▲0.0335.81 ▼0.4133.49 ▼4.03
Add New Post /wp-admin/post-new.php1,534 ▲823.45 ▼0.24662.40 ▼18.9549.82 ▼13.66
Media Library /wp-admin/upload.php1,413 ▲134.19 ▲0.0696.39 ▼11.0347.34 ▲1.56
My schedule /wp-admin/index.php?page=my_schedule7681.9924.6024.62
My schedule /wp-admin/options-general.php?page=my-schedule8661.9922.9026.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/index.php?page=my_schedule
    • > Notice in wp-content/plugins/my-schedule/includes/board.php+35
    A non well formed numeric value encountered
    • > GET request to /wp-admin/index.php?page=my_schedule
    • > Warning in wp-content/plugins/my-schedule/includes/board.php+39
    max(): Array must contain at least one element

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
The following issues need your attention
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function MySchedule\\Board\\add_action() in wp-content/plugins/my-schedule/includes/board.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function MySchedule\\Settings\\add_action() in wp-content/plugins/my-schedule/includes/settings.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function MySchedule\\Style\\add_action() in wp-content/plugins/my-schedule/includes/style.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function MySchedule\\Style\\add_action() in wp-content/plugins/my-schedule/includes/style.php:12

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: schedule

my-schedule/my-schedule.php Passed 13 tests

This is the main PHP file of "My schedule WordPress plugin" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
11 characters long description:
My schedule

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
Success! There were no dangerous files found in this plugin317 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP44214181
PO File1373092
CSS112044

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.37
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
Namespaces4
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%
Functions16
▷ Named functions1487.50%
▷ Anonymous functions212.50%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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