Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.13MB] [CPU: ▲1.34ms] Passed 4 tests
This is a short check of server-side resources used by Work Time Allocator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.64 ▲1.18 | 43.93 ▲5.42 |
Dashboard /wp-admin | 4.37 ▲1.07 | 51.35 ▲1.19 |
Posts /wp-admin/edit.php | 4.49 ▲1.13 | 49.84 ▲0.57 |
Add New Post /wp-admin/post-new.php | 7.26 ▲1.38 | 94.81 ▼1.83 |
Media Library /wp-admin/upload.php | 4.38 ▲1.15 | 51.22 ▲18.61 |
Occupations /wp-admin/edit.php?post_type=occupations | 4.34 | 39.17 |
Clients /wp-admin/edit.php?post_type=clients | 4.34 | 37.62 |
Options /wp-admin/admin.php?page=mwta_options_admin_page | 4.26 | 34.99 |
Jobs /wp-admin/edit.php?post_type=jobs | 4.34 | 36.42 |
Info /wp-admin/admin.php?page=mwta_dashboard_admin_page | 4.26 | 34.14 |
Employees /wp-admin/edit.php?post_type=employees | 4.34 | 36.45 |
Server storage [IO: ▲7.77MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 374 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_allocation |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
acf_version |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Work Time Allocator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,942 ▲207 | 14.14 ▼0.26 | 10.62 ▲8.75 | 42.79 ▼2.00 |
Dashboard /wp-admin | 2,247 ▲62 | 5.82 ▼0.03 | 104.81 ▼9.29 | 41.52 ▼3.52 |
Posts /wp-admin/edit.php | 2,164 ▲75 | 2.07 ▲0.04 | 37.08 ▼1.75 | 34.68 ▼1.15 |
Add New Post /wp-admin/post-new.php | 11,334 ▲9,820 | 26.96 ▲9.33 | 1,218.80 ▲548.75 | 40.75 ▼16.54 |
Media Library /wp-admin/upload.php | 1,981 ▲593 | 8.31 ▲4.12 | 210.34 ▲106.39 | 49.12 ▲2.55 |
Occupations /wp-admin/edit.php?post_type=occupations | 1,086 | 1.97 | 59.66 | 41.65 |
Clients /wp-admin/edit.php?post_type=clients | 1,091 | 2.00 | 31.54 | 29.83 |
Options /wp-admin/admin.php?page=mwta_options_admin_page | 844 | 2.09 | 24.94 | 27.37 |
Jobs /wp-admin/edit.php?post_type=jobs | 1,099 | 2.01 | 32.42 | 29.56 |
Info /wp-admin/admin.php?page=mwta_dashboard_admin_page | 821 | 2.07 | 25.49 | 25.62 |
Employees /wp-admin/edit.php?post_type=employees | 1,091 | 1.99 | 33.01 | 29.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/work-time-allocator/includes/roles-caps.php+22
Only variables should be assigned by reference
- The uninstall procedure has failed, leaving 7 options in the database
- acf_version
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 8× PHP files output text when accessed directly:
- > /wp-content/plugins/work-time-allocator/fpdf/tutorial/tuto7.php
- > /wp-content/plugins/work-time-allocator/fpdf/tutorial/tuto6.php
- > /wp-content/plugins/work-time-allocator/fpdf/tutorial/makefont.php
- > /wp-content/plugins/work-time-allocator/fpdf/tutorial/tuto2.php
- > /wp-content/plugins/work-time-allocator/fpdf/tutorial/tuto5.php
- > /wp-content/plugins/work-time-allocator/fpdf/tutorial/tuto4.php
- > /wp-content/plugins/work-time-allocator/fpdf/tutorial/tuto3.php
- > /wp-content/plugins/work-time-allocator/fpdf/tutorial/tuto1.php
- 88× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/work-time-allocator/lib/advanced-custom-fields/includes/fields/class-acf-field-wysiwyg.php:5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/work-time-allocator/lib/advanced-custom-fields/includes/admin/views/html-location-rule.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/work-time-allocator/lib/advanced-custom-fields/includes/fields/class-acf-field-true_false.php:5
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/work-time-allocator/lib/advanced-custom-fields/includes/fields/class-acf-field-checkbox.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/work-time-allocator/lib/advanced-custom-fields/includes/api/api-helpers.php:93
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/work-time-allocator/cpt/occupations-acf.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/work-time-allocator/lib/advanced-custom-fields/includes/acf-form-functions.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_render_field_wrap() in wp-content/plugins/work-time-allocator/lib/advanced-custom-fields/includes/admin/views/field-group-options.php:8
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/work-time-allocator/lib/advanced-custom-fields/includes/fields/class-acf-field-select.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/work-time-allocator/lib/advanced-custom-fields/includes/acf-helper-functions.php:142
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% 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 your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Timetracker), #2 (Clients), #3 (Employees), #4 (Jobs), #5 (Occupations), #6 (Options)
work-time-allocator/work-time-allocator.php Passed 13 tests
The main PHP script in "Work Time Allocator" version 1.0 is automatically included on every request by WordPress
60 characters long description:
Allocates working times to client jobs and generates reports
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
No dangerous file extensions were detected97,035 lines of code in 295 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 31 | 23,633 | 39,886 | 49,083 |
JavaScript | 17 | 6,747 | 6,691 | 22,619 |
PHP | 175 | 10,138 | 17,821 | 20,441 |
HTML | 59 | 72 | 0 | 3,240 |
CSS | 12 | 208 | 60 | 1,638 |
Markdown | 1 | 11 | 0 | 14 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 16.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 337.00 |
Average method complexity | 3.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 109 | |
▷ Abstract classes | 2 | 1.83% |
▷ Concrete classes | 107 | 98.17% |
▷ Final classes | 0 | 0.00% |
Methods | 817 | |
▷ Static methods | 1 | 0.12% |
▷ Public methods | 778 | 95.23% |
▷ Protected methods | 38 | 4.65% |
▷ Private methods | 1 | 0.12% |
Functions | 483 | |
▷ Named functions | 483 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.23MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/advanced-custom-fields/assets/inc/select2/3/select2x2.png | 0.64KB | 0.77KB | 0.00% |
assets/screenshot-6.png | 42.08KB | 11.79KB | ▼ 71.99% |
assets/screenshot-1.png | 44.39KB | 11.48KB | ▼ 74.14% |
fpdf/tutorial/logo.png | 2.32KB | 2.26KB | ▼ 2.57% |
assets/screenshot-4.png | 49.59KB | 14.37KB | ▼ 71.03% |