84% faculty-weekly-schedule

Code Review | Faculty Weekly Schedule

WordPress plugin Faculty Weekly Schedule scored84%from 54 tests.

About plugin

  • Plugin page: faculty-weekly-sc...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9.2
  • WordPress version: 6.3.1
  • First release: May 26, 2021
  • Latest release: Mar 14, 2022
  • Number of updates: 7
  • Update frequency: every 96.3 days
  • Top authors: profgeorgecooke (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /588 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.34MB] [CPU: ▼6.25ms] Passed 4 tests

An overview of server-side resources used by Faculty Weekly Schedule
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.70 ▲1.2440.23 ▼7.95
Dashboard /wp-admin4.68 ▲1.3847.81 ▼0.74
Posts /wp-admin/edit.php4.79 ▲1.4446.57 ▼1.93
Add New Post /wp-admin/post-new.php7.27 ▲1.3886.30 ▼14.38
Media Library /wp-admin/upload.php4.60 ▲1.3837.78 ▲1.14
Add new Schedule /wp-admin/post-new.php?post_type=schedule7.64132.13
Settings /wp-admin/edit.php?post_type=schedule&page=fws_settings_page7.5870.90
Help /wp-admin/edit.php?post_type=schedule&page=fws_schedule_help6.2141.43
Weekly Schedules /wp-admin/edit.php?post_type=schedule4.8739.71

Server storage [IO: ▲6.52MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 569 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Faculty Weekly Schedule
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲9914.72 ▲0.371.77 ▲0.0842.53 ▼2.00
Dashboard /wp-admin2,237 ▲575.63 ▲0.0186.36 ▼4.5438.86 ▼1.97
Posts /wp-admin/edit.php2,142 ▲422.01 ▼0.0135.28 ▼0.1830.18 ▼9.06
Add New Post /wp-admin/post-new.php1,558 ▲3023.55 ▲0.43591.06 ▼6.1163.35 ▲3.50
Media Library /wp-admin/upload.php1,436 ▲424.26 ▲0.0296.50 ▼4.2542.63 ▼0.17
Add new Schedule /wp-admin/post-new.php?post_type=schedule7,62610.26335.03141.74
Settings /wp-admin/edit.php?post_type=schedule&page=fws_settings_page1,8144.1679.9137.60
Help /wp-admin/edit.php?post_type=schedule&page=fws_schedule_help1,1732.2131.4243.94
Weekly Schedules /wp-admin/edit.php?post_type=schedule1,2161.9132.9829.93

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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 fix the following items
  • 302× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'FacultyWeeklySchedule_AdminPageFramework_TaxonomyField_View' not found in wp-content/plugins/faculty-weekly-schedule/library/admin-page-framework/factory/taxonomy_field/AdminPageFramework_TaxonomyField_Controller.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'FacultyWeeklySchedule_AdminPageFramework_Resource_Base' not found in wp-content/plugins/faculty-weekly-schedule/library/admin-page-framework/factory/meta_box/_controller/AdminPageFramework_Resource_post_meta_box.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'FacultyWeeklySchedule_AdminPageFramework_TermMeta_View' not found in wp-content/plugins/faculty-weekly-schedule/library/admin-page-framework/factory/term_meta/AdminPageFramework_TermMeta_Controller.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'FacultyWeeklySchedule_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/faculty-weekly-schedule/library/admin-page-framework/factory/_common/form/_model/element_definition/AdminPageFramework_Form_Model___SectionConditioner.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'FacultyWeeklySchedule_AdminPageFramework_Model__FormSubmission__Validator_Base' not found in wp-content/plugins/faculty-weekly-schedule/library/admin-page-framework/factory/admin_page/_model/delegate/validaor/AdminPageFramework_Model__FormSubmission__Validator.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'FacultyWeeklySchedule_AdminPageFramework_FieldType_checkbox' not found in wp-content/plugins/faculty-weekly-schedule/library/admin-page-framework/factory/_common/form/field_type/taxonomy/AdminPageFramework_FieldType_taxonomy.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'FacultyWeeklySchedule_AdminPageFramework_Model__FormSubmission__Validator_Base' not found in wp-content/plugins/faculty-weekly-schedule/library/admin-page-framework/factory/admin_page/_model/delegate/validaor/AdminPageFramework_Model__FormSubmission__Validator__ContactForm.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'FacultyWeeklySchedule_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/faculty-weekly-schedule/library/admin-page-framework/factory/admin_page/_view/AdminPageFramework_View__PageRenderer__ScreenIcon.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'FacultyWeeklySchedule_AdminPageFramework_HelpPane_Base' not found in wp-content/plugins/faculty-weekly-schedule/library/admin-page-framework/factory/meta_box/_controller/AdminPageFramework_HelpPane_post_meta_box.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'FacultyWeeklySchedule_AdminPageFramework_Utility_ArraySetter' not found in wp-content/plugins/faculty-weekly-schedule/library/admin-page-framework/factory/_common/utility/base_utility/AdminPageFramework_Utility_Path.php:9

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


Plugin configuration Passed 29 tests

readme.txt Passed 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
7 plugin tags: classes, schedule, hours, class, office...

faculty-weekly-schedule/faculty-weekly-schedule.php Passed 13 tests

"Faculty Weekly Schedule" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
59 characters long description:
Define and display the weekly schedule of a faculty member.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected45,894 lines of code in 488 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity7.80
▷ Minimum class complexity1.00
▷ Maximum class complexity159.00
Average method complexity2.28
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
▷ Abstract classes9528.61%
▷ Concrete classes23771.39%
▷ Final classes20.84%
▷ Static methods27315.50%
▷ Public methods95654.29%
▷ Protected methods27515.62%
▷ Private methods53030.10%
▷ Named functions1184.62%
▷ Anonymous functions215.38%
▷ Global constants425.00%
▷ Class constants1275.00%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
library/admin-page-framework/custom-field-types/path-custom-field-type/asset/jstree/themes/default/32px.png5.53KB2.93KB▼ 47.03%
library/admin-page-framework/custom-field-types/path-custom-field-type/asset/img/file_sprite.png18.91KB6.96KB▼ 63.20%
library/admin-page-framework/custom-field-types/path-custom-field-type/asset/jstree/themes/default/40px.png2.16KB1.84KB▼ 15.12%