Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.53ms] Passed 4 tests
A check of server-side resources used by Support Hours
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.48 ▼2.19 |
Dashboard /wp-admin | 3.33 ▼0.02 | 42.79 ▼16.22 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 43.99 ▼0.25 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 78.86 ▼10.00 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.72 ▼1.71 |
Settings /wp-admin/admin.php?page=support-hours-settings | 3.28 | 33.48 |
Overview /wp-admin/admin.php?page=support-hours | 3.27 | 28.21 |
Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Support Hours: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲90 | 14.35 ▼0.37 | 1.56 ▼0.37 | 36.50 ▼9.39 |
Dashboard /wp-admin | 2,270 ▲102 | 5.67 ▼0.01 | 81.51 ▼26.98 | 42.50 ▼6.23 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.02 ▲0.00 | 33.73 ▼1.42 | 33.80 ▼2.49 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 18.07 ▼5.09 | 610.00 ▼55.29 | 59.26 ▼10.22 |
Media Library /wp-admin/upload.php | 1,427 ▲24 | 4.15 ▼0.12 | 100.55 ▲0.30 | 43.65 ▼2.76 |
Settings /wp-admin/admin.php?page=support-hours-settings | 1,009 | 1.70 | 24.56 | 23.92 |
Overview /wp-admin/admin.php?page=support-hours | 804 | 1.69 | 24.48 | 23.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/support-hours/admin/class-support-hours-admin.php+194
Undefined index: email
- The uninstall procedure has failed, leaving 7 options in the database
- support-hours
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Support_Hours\\Support_Hours' not found in wp-content/plugins/support-hours/admin/views/support-hours-admin-settings.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function Support_Hours\\__() in wp-content/plugins/support-hours/admin/views/common/notice-configure.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/support-hours/admin/views/settings/work-table-fields.php:14
- > PHP Fatal error
Uncaught Error: Class 'Support_Hours\\Support_Hours_Data' not found in wp-content/plugins/support-hours/admin/views/widget/widget-clock.php:15
- > PHP Fatal error
Uncaught Error: Class 'Support_Hours\\Support_Hours_Data' not found in wp-content/plugins/support-hours/admin/views/support-hours-admin-widget.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function Support_Hours\\__() in wp-content/plugins/support-hours/admin/views/common/notice-no-hours.php:15
- > PHP Fatal error
Uncaught Error: Class 'Support_Hours\\Support_Hours_Data' not found in wp-content/plugins/support-hours/admin/views/widget/worktable.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function Support_Hours\\esc_html() in wp-content/plugins/support-hours/admin/views/settings/work-table-form.php:18
- > PHP Fatal error
Uncaught Error: Class 'Support_Hours\\Support_Hours_Data' not found in wp-content/plugins/support-hours/admin/views/support-hours-admin-overview.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function Support_Hours\\get_users() in wp-content/plugins/support-hours/admin/views/settings/general-settings-form.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== support-hours ===
)
support-hours/support-hours.php Passed 13 tests
This is the main PHP file of "Support Hours" version 2.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
92 characters long description:
Use Support hours to give yourself and your clients insights on the status of pre-paid work.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected912 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 224 | 719 | 814 |
PO File | 1 | 77 | 189 | 96 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 5.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 11 | 26.83% |
▷ Public methods | 33 | 80.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 19.51% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.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
PNG images were not found in this plugin