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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.09 ▲0.37 | 38.05 ▲16.91 |
Dashboard /wp-admin | 3.32 ▲0.26 | 48.31 ▲4.59 |
Posts /wp-admin/edit.php | 3.44 ▲0.32 | 44.45 ▲1.89 |
Add New Post /wp-admin/post-new.php | 5.68 ▲0.24 | 91.50 ▼555.54 |
Media Library /wp-admin/upload.php | 3.27 ▲0.26 | 35.77 ▲4.37 |
Teacher Time Tables /wp-admin/edit.php?post_type=codott_teacher_tt | 3.31 | 35.15 |
Class Time Tables /wp-admin/edit.php?post_type=codott_class_tt | 3.31 | 34.74 |
Dashboard /wp-admin/admin.php?page=codott | 3.25 | 31.80 |
Time Tables /wp-admin/edit.php?post_type=codott_time_tables | 3.31 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,744 ▲148 | 16.03 ▲0.28 | 9.38 ▼0.42 | 46.41 ▲0.57 |
Dashboard /wp-admin | 3,009 ▲78 | 6.10 ▲0.12 | 132.01 ▼10.25 | 116.19 ▼1.84 |
Posts /wp-admin/edit.php | 2,778 ▲39 | 2.72 ▼0.00 | 61.53 ▼2.30 | 88.36 ▲2.58 |
Add New Post /wp-admin/post-new.php | 1,901 ▲225 | 19.20 ▲0.36 | 378.77 ▲5.45 | 103.72 ▼6.82 |
Media Library /wp-admin/upload.php | 1,849 ▲39 | 5.03 ▲0.00 | 149.71 ▲0.11 | 122.87 ▲2.17 |
Teacher Time Tables /wp-admin/edit.php?post_type=codott_teacher_tt | 1,432 | 2.62 | 60.46 | 73.97 |
Class Time Tables /wp-admin/edit.php?post_type=codott_class_tt | 1,435 | 2.62 | 61.26 | 76.56 |
Dashboard /wp-admin/admin.php?page=codott | 1,307 | 2.08 | 53.38 | 76.38 |
Time Tables /wp-admin/edit.php?post_type=codott_time_tables | 1,435 | 2.63 | 60.61 | 75.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
- > PHP Notice
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 503 | 221 | 3,010 |
CSS | 3 | 47 | 48 | 1,268 |
JavaScript | 2 | 6 | 3 | 96 |
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 code | 0.50 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_ffffff_256x240.png | 6.33KB | 4.18KB | ▼ 33.99% |
css/images/ui-icons_777620_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
css/images/ui-icons_cc0000_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
css/images/ui-icons_555555_256x240.png | 6.91KB | 4.18KB | ▼ 39.47% |
css/images/ui-icons_777777_256x240.png | 6.94KB | 4.18KB | ▼ 39.78% |