Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.31MB] [CPU: ▲1.41ms] Passed 4 tests
An overview of server-side resources used by ClassDex
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 45.41 ▲3.32 |
Dashboard /wp-admin | 3.62 ▲0.32 | 50.53 ▲1.31 |
Posts /wp-admin/edit.php | 3.78 ▲0.43 | 50.48 ▲3.34 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 93.98 ▼2.33 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 44.30 ▲8.05 |
Clear Table /wp-admin/admin.php?page=classdex_clear_table | 3.56 | 34.39 |
Print/Email Z-Out /wp-admin/admin.php?page=classdex_print_email_z_out | 3.56 | 35.63 |
Create Cart66 Product /wp-admin/admin.php?page=classdex_create_cart66_product | 3.56 | 35.25 |
Create Class /wp-admin/admin.php?page=classdex_create_class | 3.58 | 34.78 |
Partial Payment /wp-admin/admin.php?page=classdex_partial_payment | 3.57 | 33.14 |
Student List /wp-admin/admin.php?page=classdex_student_list | 3.56 | 36.44 |
Import Table /wp-admin/admin.php?page=classdex_import_table | 3.56 | 30.33 |
Classes /wp-admin/admin.php?page=classdex_classes | 3.57 | 32.64 |
Clone Class /wp-admin/admin.php?page=classdex_clone_class | 3.56 | 29.56 |
ClassDex /wp-admin/admin.php?page=classdex_home | 3.56 | 34.21 |
Server storage [IO: ▲1.93MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 63 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_classdex_payments |
wp_classdex_classes |
wp_classdex_customers |
wp_classdex_registrations |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for ClassDex
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲147 | 14.28 ▼0.09 | 1.83 ▲0.25 | 44.95 ▲1.59 |
Dashboard /wp-admin | 2,312 ▲135 | 5.65 ▲0.08 | 100.89 ▲7.48 | 47.36 ▲6.59 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.03 ▲0.04 | 34.05 ▼2.60 | 37.74 ▼1.07 |
Add New Post /wp-admin/post-new.php | 1,561 ▲33 | 23.13 ▲0.03 | 669.70 ▲20.56 | 51.80 ▼4.69 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.17 ▼0.03 | 96.18 ▼11.99 | 47.64 ▲0.89 |
Clear Table /wp-admin/admin.php?page=classdex_clear_table | 802 | 1.74 | 19.52 | 33.06 |
Print/Email Z-Out /wp-admin/admin.php?page=classdex_print_email_z_out | 802 | 1.78 | 17.86 | 20.52 |
Create Cart66 Product /wp-admin/admin.php?page=classdex_create_cart66_product | 886 | 2.22 | 29.30 | 20.21 |
Create Class /wp-admin/admin.php?page=classdex_create_class | 802 | 1.76 | 14.65 | 19.76 |
Partial Payment /wp-admin/admin.php?page=classdex_partial_payment | 868 | 1.92 | 14.98 | 30.64 |
Student List /wp-admin/admin.php?page=classdex_student_list | 868 | 1.77 | 15.06 | 22.85 |
Import Table /wp-admin/admin.php?page=classdex_import_table | 802 | 1.93 | 14.58 | 20.22 |
Classes /wp-admin/admin.php?page=classdex_classes | 990 | 1.95 | 21.18 | 31.36 |
Clone Class /wp-admin/admin.php?page=classdex_clone_class | 797 | 1.93 | 15.06 | 20.07 |
ClassDex /wp-admin/admin.php?page=classdex_home | 976 | 1.96 | 21.89 | 31.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie tables detected upon uninstall: 4 tables
- wp_classdex_registrations
- wp_classdex_payments
- wp_classdex_classes
- wp_classdex_customers
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=classdex_clone_class
- > Warning in wp-includes/pluggable.php+1438
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=classdex_home
- > Notice in wp-content/plugins/classdex/includes/functions.php+68
date_default_timezone_set(): Timezone ID '' is invalid
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/classdex/create_cart66_product.php
- > /wp-content/plugins/classdex/includes/header_print.php
- > /wp-content/plugins/classdex/includes/footer.php
- 110× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/classdex/new_customer.php:6
- > PHP Notice
Undefined variable: edit in wp-content/plugins/classdex/includes/class_form.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function check_admin_referer() in wp-content/plugins/classdex/create_class.php:1
- > PHP Warning
require_once(CLASSDEX_PATH/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/classdex/classes.php on line 1
- > PHP Warning
require_once(CLASSDEX_PATH/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/classdex/edit_customer.php on line 2
- > PHP Warning
include(CLASSDEX_PATH/includes/header.php): failed to open stream: No such file or directory in wp-content/plugins/classdex/settings.php on line 1
- > PHP Notice
Undefined variable: edit in wp-content/plugins/classdex/includes/class_form.php on line 18
- > PHP Warning
require_once(CLASSDEX_PATH/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/classdex/search.php on line 2
- > PHP Warning
Use of undefined constant CLASSDEX_PATH - assumed 'CLASSDEX_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/classdex/registration.php on line 2
- > PHP Notice
Undefined variable: edit in wp-content/plugins/classdex/includes/class_form.php on line 26
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=classdex_classes
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=classdex_classes 187:27 Uncaught TypeError: jQuery(...).dataTable is not a function
- > GET request to /wp-admin/admin.php?page=classdex_home
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=classdex_home 178:27 Uncaught TypeError: jQuery(...).dataTable is not a function
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Add a new class complete with class information, teacher, date, time, fee, picture, class size limit, etc.), #2 (Manage all of your students contact information. View the student's current registration, class history, and payment history.), #3 (Easily search the database for a student.), #4 (Display a detailed view of your upcoming classes on your website with a simple shortcode.), #5 (An alternate class view for your website in a more condensed list format. Also embedded with a simple shortcode.)
classdex/classdex.php Passed 13 tests
"ClassDex" version 1.2.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
53 characters long description:
A class and customer management system for Wordpress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected17,125 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 1,771 | 6,188 | 6,460 |
CSS | 4 | 1,005 | 55 | 6,332 |
PHP | 45 | 656 | 1,830 | 4,333 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 1.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 100 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 100 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 87 | |
▷ Named functions | 87 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
4 compressed PNG files occupy 0.02MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/img/inset_line.png | 0.10KB | 0.11KB | 0.00% |
img/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |
css/img/th.png | 0.34KB | 0.41KB | 0.00% |
img/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |