Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/vcos/vcos.php+558
Undefined index: vcos_category
Server metrics [RAM: ▼1.82MB] [CPU: ▼54.90ms] Passed 4 tests
A check of server-side resources used by vcOS
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.30 | 8.93 ▼37.51 |
Dashboard /wp-admin | 2.19 ▼1.12 | 6.95 ▼43.11 |
Posts /wp-admin/edit.php | 2.19 ▼1.17 | 6.08 ▼48.67 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.70 | 7.53 ▼90.31 |
Media Library /wp-admin/upload.php | 2.19 ▼1.05 | 7.42 ▼29.64 |
Ver Materias /wp-admin/admin.php?page=list | 2.19 | 6.18 |
Agregar Nuevo /wp-admin/admin.php?page=create | 2.19 | 6.81 |
Editar /wp-admin/admin.php?page=edit | 2.19 | 8.18 |
vcOS ADMIN /wp-admin/admin.php?page=vcos | 2.19 | 6.69 |
Server storage [IO: ▲0.21MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: 10 new tables, 7 new options
New tables |
---|
wp_vcos_studenthomework |
wp_vcos_settings |
wp_vcos_locale |
wp_vcos_user_locales |
wp_vcos_courses |
wp_vcos_studentcourses |
wp_vcos_studentanswers |
wp_vcos_fexams |
wp_vcos_homework |
wp_vcos_studentfexams |
New WordPress options |
---|
widget_theysaidso_widget |
widget_vcos_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
vcOS: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,934 ▲173 | 13.57 ▼0.78 | 9.29 ▲7.57 | 42.85 ▲0.01 |
Dashboard /wp-admin | 2,214 ▲34 | 5.56 ▼0.10 | 95.81 ▲3.77 | 87.95 ▲45.05 |
Posts /wp-admin/edit.php | 2,134 ▲31 | 1.98 ▼0.04 | 39.45 ▼0.99 | 39.15 ▲6.39 |
Add New Post /wp-admin/post-new.php | 1,570 ▲43 | 22.93 ▼0.27 | 684.83 ▲41.38 | 55.74 ▲2.57 |
Media Library /wp-admin/upload.php | 1,434 ▲37 | 4.08 ▼0.12 | 105.63 ▲3.16 | 68.80 ▲22.82 |
Ver Materias /wp-admin/admin.php?page=list | 832 | 2.15 | 25.75 | 32.23 |
Agregar Nuevo /wp-admin/admin.php?page=create | 1,635 | 6.51 | 133.71 | 99.29 |
Editar /wp-admin/admin.php?page=edit | 1,666 | 6.65 | 142.20 | 98.88 |
vcOS ADMIN /wp-admin/admin.php?page=vcos | 854 | 1.99 | 25.89 | 30.77 |
vcOS /wp-admin/settings.php | 26 | 0.42 | 0.11 | 12.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/vcos/vcos.php+558
Undefined index: vcos_category
- The plugin did not uninstall successfully, leaving 10 tables in the database
- wp_vcos_studenthomework
- wp_vcos_fexams
- wp_vcos_user_locales
- wp_vcos_courses
- wp_vcos_locale
- wp_vcos_studentcourses
- wp_vcos_homework
- wp_vcos_studentfexams
- wp_vcos_settings
- wp_vcos_studentanswers
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_vcos_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vcos
- > Notice in wp-content/plugins/vcos/vcos.php+558
Undefined index: vcos_category
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vcos
- > Notice in wp-content/plugins/vcos/vcos_admin.php+6
Undefined index: course
- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vcos
- > Notice in wp-content/plugins/vcos/vcos_admin.php+106
Undefined index: courseid
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=edit
- > Notice in wp-content/plugins/vcos/vcos_admin.php+224
Undefined variable: _course
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=edit
- > Notice in wp-content/plugins/vcos/vcos_admin.php+230
Undefined variable: _details
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=edit
- > Warning in wp-content/plugins/vcos/vcos_admin.php+230
Use of undefined constant details - assumed 'details' (this will throw an Error in a future version of PHP)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=edit
- > Notice in wp-content/plugins/vcos/vcos_admin.php+234
Undefined variable: _credits
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=edit
- > Notice in wp-content/plugins/vcos/vcos_admin.php+247
Undefined variable: _ownerid
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=edit
- > Notice in wp-content/plugins/vcos/vcos_admin.php+257
Undefined variable: _proid
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=edit
- > Notice in wp-content/plugins/vcos/vcos_admin.php+278
Undefined variable: course
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=edit
- > Notice in wp-content/plugins/vcos/vcos_admin.php+278
Trying to get property 'enabled' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=edit
- > Notice in wp-content/plugins/vcos/vcos_admin.php+279
Undefined variable: _courseid
- > GET request to /wp-admin/admin.php?page=vcos
- > Notice in wp-content/plugins/vcos/vcos_admin.php+137
Trying to get property 'courses' of non-object
- > GET request to /wp-admin/admin.php?page=vcos
- > Notice in wp-content/plugins/vcos/vcos_admin.php+139
Trying to get property 'IDmateria' of non-object
- > GET request to /wp-admin/admin.php?page=vcos
- > Notice in wp-content/plugins/vcos/vcos_admin.php+142
Trying to get property 'course' of non-object
SRP 0% 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
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/vcos/admin_head-export.php
- > /wp-content/plugins/vcos/vcos_admin.php
- > /wp-content/plugins/vcos/crosscheck.php
- 56× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/vcos/mysql.php on line 94
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/vcos/mysql.php on line 3
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/vcos/mysql.php on line 4
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/vcos/functions.php on line 4
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/vcos/mysql.php on line 65
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/vcos/mysql.php on line 94
- > PHP Fatal error
Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/vcos/users.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/vcos/vcos.php:33
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/vcos/mysql.php on line 49
- > PHP Notice
Undefined index: course in wp-content/plugins/vcos/vcos_admin.php on line 6
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/settings.php
- > Network (severe)
wp-admin/settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: virtual, school, learning, teaching, enseanza...
vcos/vcos.php 92% from 13 tests
The primary PHP file in "vcOS" version 1.4.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 225 characters long)
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
There were no executable files found in this plugin2,101 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 312 | 101 | 1,772 |
CSS | 2 | 147 | 0 | 322 |
JavaScript | 1 | 3 | 0 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.13MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vcos_icon.png | 0.66KB | 0.72KB | 0.00% |
vcos_large.png | 134.62KB | 59.61KB | ▼ 55.72% |