Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5610
add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.
Server metrics [RAM: ▲1.47MB] [CPU: ▼305.08ms] Passed 4 tests
A check of server-side resources used by WizIQ
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.74 ▲1.23 | 32.59 ▼26.34 |
Dashboard /wp-admin | 5.09 ▲1.69 | 51.34 ▲17.16 |
Posts /wp-admin/edit.php | 4.96 ▲1.32 | 44.98 ▲3.95 |
Add New Post /wp-admin/post-new.php | 8.62 ▲1.65 | 105.33 ▼1,215.10 |
Media Library /wp-admin/upload.php | 5.04 ▲1.75 | 52.64 ▲23.22 |
Content /wp-admin/admin.php?page=wiziq_content | 5.03 | 229.37 |
Calendar /wp-admin/admin.php?page=wiziq_calendar | 5.01 | 47.63 |
Courses /wp-admin/admin.php?page=wiziq | 5.01 | 38.63 |
Create Pages /wp-admin/admin.php?page=wiziq_create_pages | 5.01 | 37.19 |
Settings /wp-admin/admin.php?page=wiziq_settings | 5.01 | 35.80 |
Enroll Users /wp-admin/admin.php?page=wiziq_enroll | 5.07 | 37.55 |
WizIQ Class /wp-admin/admin.php?page=wiziq_class | 5.02 | 34.22 |
Server storage [IO: ▲1.64MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 156 new files
Database: 4 new tables, 8 new options
New tables |
---|
wp_wiziq_wclasses |
wp_wiziq_contents |
wp_wiziq_enroluser |
wp_wiziq_courses |
New WordPress options |
---|
api_url |
timezone_api_url |
secret_key |
content_language |
recurring_api_url |
email_notification |
access_key |
content_url |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WizIQ
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,999 ▲245 | 16.82 ▲1.22 | 13.62 ▲7.61 | 2.50 ▲0.06 |
Dashboard /wp-admin | 2,943 ▲82 | 6.58 ▲0.37 | 118.94 ▼12.80 | 181.30 ▲22.00 |
Posts /wp-admin/edit.php | 2,740 ▲55 | 3.30 ▲0.07 | 66.07 ▼2.14 | 138.86 ▼16.12 |
Add New Post /wp-admin/post-new.php | 1,714 ▲53 | 22.34 ▲5.39 | 445.63 ▲26.26 | 188.64 ▲31.24 |
Media Library /wp-admin/upload.php | 1,768 ▲70 | 5.79 ▲0.28 | 126.67 ▼11.13 | 208.62 ▲22.66 |
Content /wp-admin/admin.php?page=wiziq_content | 1,229 | 2.72 | 57.63 | 110.32 |
Calendar /wp-admin/admin.php?page=wiziq_calendar | 1,043 | 2.83 | 65.67 | 102.40 |
Courses /wp-admin/admin.php?page=wiziq | 1,304 | 2.86 | 59.03 | 149.03 |
Create Pages /wp-admin/admin.php?page=wiziq_create_pages | 1,193 | 2.82 | 56.54 | 85.85 |
Settings /wp-admin/admin.php?page=wiziq_settings | 1,257 | 2.70 | 58.40 | 128.57 |
Enroll Users /wp-admin/admin.php?page=wiziq_enroll | 1,053 | 2.81 | 55.28 | 86.58 |
WizIQ Class /wp-admin/admin.php?page=wiziq_class | 1,033 | 2.85 | 55.18 | 71.10 |
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 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=wiziq_content
- > Notice in wp-content/plugins/wiziq/wiziqapi/AuthBase.php+69
fopen(): Content-type not specified assuming application/x-www-form-urlencoded
- > GET request to /wp-admin/admin.php?page=wiziq
- > Notice in wp-content/plugins/wiziq/functions/wiziq_courses.php+328
Undefined variable: descriptionordering
- > GET request to /wp-admin/admin.php?page=wiziq
- > Notice in wp-content/plugins/wiziq/functions/wiziq_courses.php+356
Undefined variable: startdateordering
- > GET request to /wp-admin/admin.php?page=wiziq
- > Notice in wp-content/plugins/wiziq/functions/wiziq_courses.php+364
Undefined variable: enddateordering
- > GET request to /wp-admin/admin.php?page=wiziq_enroll
- > Notice in wp-content/plugins/wiziq/functions/wiziq_course_enroll.php+19
Undefined index: course_id
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 take a closer look at the following
- 14× 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/wiziq/functions/wiziq_action_hooks.php:13
- > PHP Fatal error
require_once(): Failed opening required 'WIZIQ_PLUGIN_PATH/functions/wiziq_course_enroll.php' (include_path='.:/usr/share/php') in wp-content/plugins/wiziq/admin/wiziq_courses_enroll_users.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wiziq/frontend/wiziq_site.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wiziq/frontend/shortcode/wiziq_site.php:6
- > PHP Fatal error
Uncaught Error: Class 'Wiziq_Classes' not found in wp-content/plugins/wiziq/admin/wiziq_class.php:9
- > PHP Fatal error
Uncaught Error: Class 'Wiziq_Content' not found in wp-content/plugins/wiziq/admin/wiziq_content.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wiziq/admin/admin_hooks.php:6
- > PHP Fatal error
Uncaught Error: Class 'Wiziq_Frontend_Courses' not found in wp-content/plugins/wiziq/frontend/shortcode/shortcode_wiziq.php:5
- > PHP Warning
Use of undefined constant WIZIQ_PLUGIN_PATH - assumed 'WIZIQ_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wiziq/admin/wiziq_courses_enroll_users.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wiziq/wiziq_config.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wiziq_class
- > Network (severe)
wp-content/plugins/wiziq/sorttable/sorttable.css?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wiziq_class
- > Network (severe)
wp-content/plugins/wiziq/fullcalendar/fullcalendar.css?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wiziq_class
- > Network (severe)
wp-content/plugins/wiziq/fullcalendar/fullcalendar_custom.css?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wiziq_class
- > Network (severe)
wp-content/plugins/wiziq/fullcalendar/lib/moment.min.js?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wiziq_class
- > Network (severe)
wp-content/plugins/wiziq/fullcalendar/fullcalendar.min.js?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wiziq_class
- > Network (severe)
wp-content/plugins/wiziq/sorttable/sorttable.js?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=wiziq_calendar
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31592 "jQuery.Deferred exception: jQuery(...).fullCalendar is not a function" "TypeError: jQuery(...).fullCalendar is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=wiziq_calendar:158:23)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:30340)" undefined
- > GET request to /wp-admin/admin.php?page=wiziq_calendar
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31702 Uncaught TypeError: jQuery(...).fullCalendar is not a function
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
wiziq/wiziq.php Passed 13 tests
The main PHP script in "WizIQ" version 1.2 is automatically included on every request by WordPress
55 characters long description:
Making online teaching and learning easier for everyone
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected24,131 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 19 | 5,350 | 90 | 10,920 |
PHP | 28 | 1,404 | 1,381 | 10,836 |
JavaScript | 2 | 131 | 156 | 1,193 |
CSS | 3 | 47 | 54 | 1,182 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 212)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 108.57 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 417.00 |
Average method complexity | 15.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 212.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 106 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 49 | |
▷ Named functions | 49 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 97 | |
▷ Global constants | 97 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
81 PNG files occupy 0.27MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/15/mov.png | 3.33KB | 0.96KB | ▼ 71.14% |
images/15/mp3.png | 3.26KB | 0.74KB | ▼ 77.29% |
stylesheet/images/ui-icons_ef8c08_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
images/15/folder.png | 3.09KB | 0.56KB | ▼ 81.75% |
images/20/mov.png | 3.78KB | 1.28KB | ▼ 66.24% |