Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.49MB] [CPU: ▼2.59ms] Passed 4 tests
An overview of server-side resources used by UniTimetable
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.48 | 43.76 ▼5.86 |
Dashboard /wp-admin | 3.80 ▲0.50 | 49.62 ▼1.29 |
Posts /wp-admin/edit.php | 3.91 ▲0.56 | 48.80 ▲1.61 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.49 | 87.68 ▼3.81 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 36.29 ▲0.62 |
Periods /wp-admin/admin.php?page=unitimetable/UniTimetable.php_periods | 3.67 | 33.53 |
UniTimeTable /wp-admin/admin.php?page=unitimetable/UniTimetable.php | 3.69 | 38.35 |
Events /wp-admin/admin.php?page=unitimetable/UniTimetable.php_events | 3.70 | 33.48 |
Teachers /wp-admin/admin.php?page=unitimetable/UniTimetable.php_teachers | 3.67 | 32.62 |
Lectures /wp-admin/admin.php?page=unitimetable/UniTimetable.php_lectures | 3.70 | 34.42 |
Subjects /wp-admin/admin.php?page=unitimetable/UniTimetable.php_subjects | 3.67 | 36.08 |
Groups /wp-admin/admin.php?page=unitimetable/UniTimetable.php_groups | 3.67 | 32.71 |
Classrooms /wp-admin/admin.php?page=unitimetable/UniTimetable.php_classrooms | 3.67 | 33.46 |
Holidays /wp-admin/admin.php?page=unitimetable/UniTimetable.php_holidays | 3.69 | 32.37 |
Server storage [IO: ▲1.72MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 112 new files
Database: 8 new tables, 6 new options
New tables |
---|
wp_utt_events |
wp_utt_classrooms |
wp_utt_teachers |
wp_utt_lectures |
wp_utt_subjects |
wp_utt_holidays |
wp_utt_groups |
wp_utt_periods |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
UniTimetable: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲122 | 13.55 ▼0.82 | 1.65 ▼0.16 | 44.03 ▼8.53 |
Dashboard /wp-admin | 2,263 ▲75 | 4.85 ▲0.02 | 102.62 ▼13.82 | 40.26 ▼5.58 |
Posts /wp-admin/edit.php | 2,146 ▲57 | 2.05 ▲0.01 | 33.20 ▼4.84 | 35.54 ▼0.84 |
Add New Post /wp-admin/post-new.php | 1,574 ▲41 | 23.25 ▲0.02 | 676.88 ▼11.52 | 60.69 ▲9.04 |
Media Library /wp-admin/upload.php | 1,442 ▲54 | 4.28 ▲0.11 | 98.45 ▼6.88 | 44.14 ▼1.64 |
Periods /wp-admin/admin.php?page=unitimetable/UniTimetable.php_periods | 826 | 1.56 | 7.84 | 21.21 |
UniTimeTable /wp-admin/admin.php?page=unitimetable/UniTimetable.php | 887 | 2.02 | 23.22 | 28.36 |
Events /wp-admin/admin.php?page=unitimetable/UniTimetable.php_events | 1,138 | 2.40 | 44.80 | 25.10 |
Teachers /wp-admin/admin.php?page=unitimetable/UniTimetable.php_teachers | 806 | 1.38 | 9.10 | 21.13 |
Lectures /wp-admin/admin.php?page=unitimetable/UniTimetable.php_lectures | 1,355 | 3.06 | 53.94 | 25.29 |
Subjects /wp-admin/admin.php?page=unitimetable/UniTimetable.php_subjects | 976 | 1.59 | 9.43 | 26.35 |
Groups /wp-admin/admin.php?page=unitimetable/UniTimetable.php_groups | 1,119 | 1.57 | 7.77 | 22.30 |
Classrooms /wp-admin/admin.php?page=unitimetable/UniTimetable.php_classrooms | 831 | 1.38 | 7.77 | 21.57 |
Holidays /wp-admin/admin.php?page=unitimetable/UniTimetable.php_holidays | 938 | 1.98 | 28.64 | 23.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=unitimetable/UniTimetable.php_groups
- > Notice in wp-content/plugins/unitimetable/groupsFunctions.php+200
Undefined variable: periodID
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 20× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unitimetable/teachersFunctions.php:56
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/unitimetable/UniTimetable.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unitimetable/trunk/holidaysFunctions.php:71
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unitimetable/trunk/teachersFunctions.php:56
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unitimetable/trunk/lecturesFunctions.php:204
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unitimetable/trunk/groupsFunctions.php:171
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/unitimetable/calendarShortcode.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/unitimetable/trunk/calendarShortcode.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unitimetable/trunk/subjectsFunctions.php:91
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unitimetable/groupsFunctions.php:171
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=unitimetable/UniTimetable.php_lectures
- > Javascript (severe) in unknown
/wp-content/plugins/unitimetable/js/fullcalendar.js?ver=6.3.1 14:18 Uncaught ReferenceError: moment is not defined
- > GET request to /wp-admin/admin.php?page=unitimetable/UniTimetable.php_lectures
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).fullCalendar is not a function" "TypeError: $(...).fullCalendar is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/unitimetable/js/lectureScripts.js?ver=6.3.1:201:22)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=unitimetable/UniTimetable.php_lectures
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).fullCalendar is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid url: "-"
unitimetable/UniTimetable.php 92% from 13 tests
"UniTimetable" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("unitimetable.php" instead of "UniTimetable.php")
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
Success! There were no dangerous files found in this plugin15,473 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 17 | 2,815 | 2,180 | 10,443 |
PHP | 12 | 112 | 314 | 2,540 |
CSS | 4 | 267 | 178 | 1,983 |
PO File | 1 | 261 | 503 | 507 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
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 | 106 | |
▷ Named functions | 106 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
34 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
trunk/css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |
trunk/css/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
css/images/ui-bg_glass_75_dadada_1x400.png | 0.26KB | 0.16KB | ▼ 38.93% |
css/images/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
css/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |