83% ez-schedule-manager-free

Code Review | ez Schedule Manager

WordPress plugin ez Schedule Manager scored83%from 54 tests.

About plugin

  • Plugin page: ez-schedule-manag...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.2.2
  • WordPress version: 6.3.1
  • First release: Mar 4, 2015
  • Latest release: May 20, 2015
  • Number of updates: 5
  • Update frequency: every 15.4 days
  • Top authors: keksdieb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /3,931 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.87ms] Passed 4 tests

Analyzing server-side resources used by ez Schedule Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0646.79 ▲0.07
Dashboard /wp-admin3.36 ▲0.0652.24 ▼2.82
Posts /wp-admin/edit.php3.48 ▲0.1251.06 ▼2.18
Add New Post /wp-admin/post-new.php5.94 ▲0.0688.26 ▼14.53
Media Library /wp-admin/upload.php3.29 ▲0.0638.78 ▲2.19
ez Schedule Manager Free /wp-admin/admin.php?page=ezscm3.5646.90
Global settings /wp-admin/admin.php?page=ezscm-settings-global3.5445.84
Schedule settings /wp-admin/admin.php?page=ezscm-settings-schedule3.5543.99
Premium /wp-admin/admin.php?page=ezscm-premium3.2840.15

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 53 new files
Database: 5 new tables, 6 new options
New tables
wp_ezscmf_entries
wp_ezscmf_debug
wp_ezscmf_schedules
wp_ezscmf_settings_schedule
wp_ezscmf_settings
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for ez Schedule Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲9114.25 ▼0.101.95 ▲0.1544.80 ▲1.79
Dashboard /wp-admin2,230 ▲535.57 ▼0.0291.19 ▼1.1239.18 ▼3.58
Posts /wp-admin/edit.php2,132 ▲292.00 ▼0.0235.45 ▼1.2033.91 ▼3.61
Add New Post /wp-admin/post-new.php1,554 ▲2823.12 ▼0.51617.47 ▼45.3154.60 ▼2.18
Media Library /wp-admin/upload.php1,438 ▲384.28 ▲0.0897.53 ▼6.2142.74 ▼1.45
ez Schedule Manager Free /wp-admin/admin.php?page=ezscm3,0129.66208.8866.72
Global settings /wp-admin/admin.php?page=ezscm-settings-global1,2993.6858.3633.06
Schedule settings /wp-admin/admin.php?page=ezscm-settings-schedule2,7779.33172.4651.34
Premium /wp-admin/admin.php?page=ezscm-premium1,68010.42291.3372.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 8× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ez-schedule-manager-free/ajax.php
    • > /wp-content/plugins/ez-schedule-manager-free/ajax-admin.php
    • > /wp-content/plugins/ez-schedule-manager-free/ezscm-page-settings-schedule.php
    • > /wp-content/plugins/ez-schedule-manager-free/ezscm-page-options.php
    • > /wp-content/plugins/ez-schedule-manager-free/ezscm-page-settings.php
    • > /wp-content/plugins/ez-schedule-manager-free/ezscm.php
    • > /wp-content/plugins/ez-schedule-manager-free/ezscm-page-settings-global.php
    • > /wp-content/plugins/ez-schedule-manager-free/ezscm-page-schedules.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (15 tag instead of maximum 10)
  • Screenshots: Please describe screenshot #3 in ez-schedule-manager-free/assets to your readme.txt
Please take inspiration from this readme.txt

ez-schedule-manager-free/ezscm.php 85% from 13 tests

The main PHP file in "ez Schedule Manager" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ez-schedule-manager-free.php" instead of "ezscm.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 211 characters long)

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
Success! There were no dangerous files found in this plugin3,442 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP135191791,836
CSS710246899
SVG100565
SQL18073
JavaScript9143269

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity47.00
▷ Minimum class complexity2.00
▷ Maximum class complexity89.00
Average method complexity4.63
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods38
▷ Static methods410.53%
▷ Public methods3694.74%
▷ Protected methods00.00%
▷ Private methods25.26%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
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
13 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/ui-bg_flat_75_ffffff_40x100.png0.20KB0.08KB▼ 58.17%
assets/css/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%
assets/css/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%
assets/css/images/ui-bg_glass_75_e6e6e6_1x400.png0.26KB0.15KB▼ 42.37%
assets/css/images/ui-icons_888888_256x240.png6.83KB4.17KB▼ 38.92%