Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▼2.48ms] Passed 4 tests
An overview of server-side resources used by Weekly Class Schedule
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 32.89 ▼8.02 |
Dashboard /wp-admin | 3.64 ▲0.33 | 51.97 ▲2.69 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 48.90 ▲3.74 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 95.25 ▼6.67 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 36.54 ▲2.07 |
Options /wp-admin/admin.php?page=wcs3-standard-options | 3.53 | 34.03 |
Schedule /wp-admin/admin.php?page=wcs3-schedule | 3.51 | 201.51 |
Import/Update /wp-admin/admin.php?page=wcs3-import-update | 3.53 | 30.03 |
Add New /wp-admin/post-new.php?post_type=wcs3_class | 3.67 | 49.01 |
Classes /wp-admin/edit.php?post_type=wcs3_class | 3.60 | 36.77 |
Add New /wp-admin/post-new.php?post_type=wcs3_location | 3.67 | 48.11 |
Add New /wp-admin/post-new.php?post_type=wcs3_instructor | 3.67 | 50.30 |
Instructors /wp-admin/edit.php?post_type=wcs3_instructor | 3.60 | 36.66 |
Locations /wp-admin/edit.php?post_type=wcs3_location | 3.60 | 33.75 |
Server storage [IO: ▲1.44MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 69 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_wcs3_schedule |
New WordPress options |
---|
wcs3_settings |
widget_recent-posts |
widget_wcs3_today_classes_widget |
wcs3_version |
widget_theysaidso_widget |
can_compress_scripts |
wcs3_db_version |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Weekly Class Schedule
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,934 ▲199 | 13.33 ▼1.25 | 1.78 ▲0.00 | 46.33 ▼0.53 |
Dashboard /wp-admin | 2,332 ▲147 | 4.90 ▼0.95 | 100.25 ▼13.29 | 46.70 ▲3.42 |
Posts /wp-admin/edit.php | 2,212 ▲123 | 2.06 ▲0.03 | 35.92 ▼7.46 | 33.77 ▼1.64 |
Add New Post /wp-admin/post-new.php | 1,623 ▲81 | 23.34 ▲5.06 | 586.65 ▼66.53 | 56.56 ▲4.72 |
Media Library /wp-admin/upload.php | 1,514 ▲129 | 4.21 ▼0.03 | 94.46 ▼5.92 | 41.23 ▼0.70 |
Options /wp-admin/admin.php?page=wcs3-standard-options | 1,820 | 2.00 | 35.79 | 37.13 |
Schedule /wp-admin/admin.php?page=wcs3-schedule | 1,454 | 1.85 | 23.26 | 30.69 |
Import/Update /wp-admin/admin.php?page=wcs3-import-update | 910 | 1.72 | 23.54 | 23.03 |
Add New /wp-admin/post-new.php?post_type=wcs3_class | 2,262 | 7.58 | 180.42 | 59.53 |
Classes /wp-admin/edit.php?post_type=wcs3_class | 1,185 | 2.01 | 33.83 | 31.18 |
Add New /wp-admin/post-new.php?post_type=wcs3_location | 2,263 | 7.69 | 160.01 | 52.04 |
Add New /wp-admin/post-new.php?post_type=wcs3_instructor | 2,263 | 7.54 | 159.44 | 53.30 |
Instructors /wp-admin/edit.php?post_type=wcs3_instructor | 1,182 | 2.01 | 32.74 | 30.86 |
Locations /wp-admin/edit.php?post_type=wcs3_location | 1,185 | 2.05 | 31.60 | 27.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_wcs3_today_classes_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=wcs3-schedule
- > Warning in wp-content/plugins/weekly-class-schedule/includes/wcs3_admin.php+118
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- > GET request to /wp-admin/admin.php?page=wcs3-schedule
- > Warning in wp-content/plugins/weekly-class-schedule/includes/wcs3_admin.php+118
file_get_contents(http://pulsarwebdesign.com/top3.json): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
- > GET request to /wp-admin/admin.php?page=wcs3-schedule
- > Notice in wp-content/plugins/weekly-class-schedule/includes/wcs3_admin.php+127
Undefined variable: top3
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
The following issues need your attention
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/weekly-class-schedule/wcs.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/weekly-class-schedule/includes/wcs3_settings.php:284
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/weekly-class-schedule/includes/wcs3_css.php:60
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/weekly-class-schedule/includes/wcs3_widgets.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/weekly-class-schedule/includes/wcs3_admin.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/weekly-class-schedule/includes/wcs3_ajax.php:242
- > PHP Fatal error
require_once(): Failed opening required 'WCS3_PLUGIN_DIR/includes/wcs3_db.php' (include_path='.:/usr/share/php') in wp-content/plugins/weekly-class-schedule/wcs3_modules.php on line 5
- > PHP Warning
require_once(WCS3_PLUGIN_DIR/includes/wcs3_db.php): failed to open stream: No such file or directory in wp-content/plugins/weekly-class-schedule/wcs3_modules.php on line 5
- > PHP Warning
Use of undefined constant WCS3_PLUGIN_DIR - assumed 'WCS3_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/weekly-class-schedule/wcs3_modules.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/weekly-class-schedule/includes/wcs3_output.php:80
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #1 (List Layout)
weekly-class-schedule/wcs.php 77% from 13 tests
The primary PHP file in "Weekly Class Schedule" version 3.19 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 177 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("weekly-class-schedule.php" instead of "wcs.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin5,063 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 461 | 461 | 2,575 |
PHP | 13 | 381 | 391 | 1,640 |
CSS | 7 | 92 | 69 | 848 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 65 | |
▷ Named functions | 65 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 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
22 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugins/colorpicker/images/colorpicker_hsb_b.png | 0.95KB | 0.76KB | ▼ 19.48% |
plugins/colorpicker/images/custom_rgb_g.png | 1.04KB | 0.80KB | ▼ 23.67% |
plugins/colorpicker/images/select2.png | 0.51KB | 0.33KB | ▼ 34.94% |
plugins/colorpicker/images/colorpicker_rgb_r.png | 1.04KB | 0.77KB | ▼ 26.17% |
plugins/colorpicker/images/colorpicker_rgb_b.png | 0.95KB | 0.76KB | ▼ 19.48% |