93% time-tables

Code Review | CodoTimeTable

WordPress plugin CodoTimeTable scored 93% from 54 tests.

About plugin

  • Plugin page: time-tables
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.4
  • WordPress version: 5.8.1
  • First release: Mar 27, 2018
  • Latest release: Mar 27, 2018
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: junaidte14 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,358 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.27MB] [CPU: ▼136.17ms] Passed 4 tests

Server-side resources used by CodoTimeTable
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.09 ▲0.3738.05 ▲16.91
Dashboard /wp-admin3.32 ▲0.2648.31 ▲4.59
Posts /wp-admin/edit.php3.44 ▲0.3244.45 ▲1.89
Add New Post /wp-admin/post-new.php5.68 ▲0.2491.50 ▼555.54
Media Library /wp-admin/upload.php3.27 ▲0.2635.77 ▲4.37
Teacher Time Tables /wp-admin/edit.php?post_type=codott_teacher_tt3.3135.15
Class Time Tables /wp-admin/edit.php?post_type=codott_class_tt3.3134.74
Dashboard /wp-admin/admin.php?page=codott3.2531.80
Time Tables /wp-admin/edit.php?post_type=codott_time_tables3.3135.42

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by CodoTimeTable
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,744 ▲14816.03 ▲0.289.38 ▼0.4246.41 ▲0.57
Dashboard /wp-admin3,009 ▲786.10 ▲0.12132.01 ▼10.25116.19 ▼1.84
Posts /wp-admin/edit.php2,778 ▲392.72 ▼0.0061.53 ▼2.3088.36 ▲2.58
Add New Post /wp-admin/post-new.php1,901 ▲22519.20 ▲0.36378.77 ▲5.45103.72 ▼6.82
Media Library /wp-admin/upload.php1,849 ▲395.03 ▲0.00149.71 ▲0.11122.87 ▲2.17
Teacher Time Tables /wp-admin/edit.php?post_type=codott_teacher_tt1,4322.6260.4673.97
Class Time Tables /wp-admin/edit.php?post_type=codott_class_tt1,4352.6261.2676.56
Dashboard /wp-admin/admin.php?page=codott1,3072.0853.3876.38
Time Tables /wp-admin/edit.php?post_type=codott_time_tables1,4352.6360.6175.99

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

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)
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 51× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: time_table_classes_courses_assign in wp-content/plugins/time-tables/plugin_pages/time_table_for_post_type.php on line 17
    • > PHP Notice
      Undefined variable: time_table_day_slots2 in wp-content/plugins/time-tables/plugin_pages/time_table_for_post_type.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/time-tables/plugin_pages/about.php:6
    • > PHP Notice
      Undefined offset: 1 in wp-content/plugins/time-tables/plugin_pages/saved_class_time_table.php on line 23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/time-tables/plugin_pages/time_tables.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/time-tables/plugin_pages/class_time_tables.php:32
    • > PHP Notice
      Undefined variable: time_table_classes_courses_assign in wp-content/plugins/time-tables/plugin_pages/saved_class_time_table.php on line 19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/time-tables/codott_templates/archive-codott_time_tables.php:1
    • > PHP Notice
      Undefined variable: time_table_room_slots2 in wp-content/plugins/time-tables/plugin_pages/saved_class_time_table.php on line 4
    • > PHP Notice
      Undefined variable: time_table_day_slots2 in wp-content/plugins/time-tables/plugin_pages/saved_teacher_time_table.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 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
7 plugin tags: classes time table, auto time table, time table, university time table, institute time table...

time-tables/codotimetables.php 77% from 13 tests

This is the main PHP file of "CodoTimeTable" 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
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("time-tables.php" instead of "codotimetables.php")
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
There were no executable files found in this plugin4,374 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP205032213,010
CSS347481,268
JavaScript26396

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_ffffff_256x240.png6.33KB4.18KB▼ 33.99%
css/images/ui-icons_777620_256x240.png4.57KB4.18KB▼ 8.43%
css/images/ui-icons_cc0000_256x240.png4.57KB4.18KB▼ 8.43%
css/images/ui-icons_555555_256x240.png6.91KB4.18KB▼ 39.47%
css/images/ui-icons_777777_256x240.png6.94KB4.18KB▼ 39.78%