Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.94MB] [CPU: ▼2.04ms] Passed 4 tests
A check of server-side resources used by NavThemes Employee Ratings
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.46 ▲0.96 | 42.77 ▼2.00 |
Dashboard /wp-admin | 4.35 ▲1.04 | 56.22 ▲7.55 |
Posts /wp-admin/edit.php | 4.45 ▲0.60 | 42.52 ▼12.71 |
Add New Post /wp-admin/post-new.php | 7.13 ▲1.24 | 99.23 ▲4.18 |
Media Library /wp-admin/upload.php | 4.39 ▲1.16 | 43.80 ▲2.38 |
Add New /wp-admin/post-new.php?post_type=timesheet-project | 4.50 | 52.34 |
Timesheet Project /wp-admin/edit.php?post_type=timesheet-project | 4.28 | 41.34 |
Employee Ratings /wp-admin/edit.php?post_type=employee-ratings | 4.28 | 39.76 |
Reports /wp-admin/edit.php?post_type=employee-ratings&page=rating-view | 4.21 | 30.81 |
Time Sheet Reports /wp-admin/edit.php?post_type=employee-ratings&page=timesheet-view | 4.18 | 36.27 |
Add New /wp-admin/post-new.php?post_type=employee-ratings | 4.56 | 47.60 |
Server storage [IO: ▲6.46MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 228 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
acf_version |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
NavThemes Employee Ratings: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲129 | 13.29 ▼0.92 | 4.72 ▲3.00 | 42.48 ▼8.82 |
Dashboard /wp-admin | 2,270 ▲82 | 5.85 ▼0.19 | 137.21 ▲29.77 | 61.17 ▲20.84 |
Posts /wp-admin/edit.php | 2,153 ▲61 | 2.02 ▲0.04 | 33.72 ▼2.43 | 33.02 ▲0.05 |
Add New Post /wp-admin/post-new.php | 6,713 ▲5,194 | 28.03 ▲5.27 | 1,124.17 ▲469.34 | 44.28 ▼15.34 |
Media Library /wp-admin/upload.php | 1,994 ▲609 | 8.16 ▲3.73 | 220.23 ▲93.30 | 54.43 ▲0.16 |
Add New /wp-admin/post-new.php?post_type=timesheet-project | 2,178 | 8.37 | 159.30 | 33.66 |
Timesheet Project /wp-admin/edit.php?post_type=timesheet-project | 1,120 | 1.96 | 37.56 | 32.67 |
Employee Ratings /wp-admin/edit.php?post_type=employee-ratings | 1,122 | 1.95 | 39.42 | 38.90 |
Reports /wp-admin/edit.php?post_type=employee-ratings&page=rating-view | 862 | 2.03 | 24.95 | 30.69 |
Time Sheet Reports /wp-admin/edit.php?post_type=employee-ratings&page=timesheet-view | 828 | 2.02 | 29.47 | 31.42 |
Add New /wp-admin/post-new.php?post_type=employee-ratings | 2,723 | 8.17 | 173.58 | 39.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- acf_version
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/edit.php?post_type=employee-ratings&page=timesheet-view
- > Warning in wp-content/plugins/navthemes-employee-ratings/navthemes-employee-ratings.php+195
include(page-viewtimesheet.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/edit.php?post_type=employee-ratings&page=timesheet-view
- > Warning in wp-content/plugins/navthemes-employee-ratings/navthemes-employee-ratings.php+195
include(): Failed opening 'page-viewtimesheet.php' for inclusion (include_path='.:/usr/share/php')
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
Please take a closer look at the following
- 70× 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/navthemes-employee-ratings/admin/includes/fields/class-acf-field-date_time_picker.php:5
- > PHP Notice
Undefined variable: group_id in wp-content/plugins/navthemes-employee-ratings/admin/includes/admin/views/html-location-group.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/navthemes-employee-ratings/admin/includes/fields/class-acf-field-number.php:5
- > PHP Notice
Undefined variable: group_id in wp-content/plugins/navthemes-employee-ratings/admin/includes/admin/views/html-location-group.php on line 3
- > PHP Notice
Undefined variable: field in wp-content/plugins/navthemes-employee-ratings/admin/includes/admin/views/field-group-field.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/navthemes-employee-ratings/admin/includes/admin/views/field-group-fields.php:4
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/navthemes-employee-ratings/admin/includes/fields/class-acf-field-oembed.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_form_head() in wp-content/plugins/navthemes-employee-ratings/page-viewrating.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_get_location_rule_types() in wp-content/plugins/navthemes-employee-ratings/admin/includes/admin/views/html-location-rule.php:12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/navthemes-employee-ratings/admin/includes/admin/views/html-location-rule.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3 in navthemes-employee-ratings/assets to your readme.txt
navthemes-employee-ratings/navthemes-employee-ratings.php 85% from 13 tests
The main file in "NavThemes Employee Ratings" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Description: The description should be shorter than 140 characters (currently 182 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin83,222 lines of code in 181 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 28 | 20,800 | 33,639 | 43,399 |
JavaScript | 13 | 6,751 | 6,791 | 22,236 |
PHP | 126 | 12,799 | 16,970 | 15,773 |
CSS | 12 | 210 | 60 | 1,660 |
JSON | 1 | 0 | 0 | 124 |
SVG | 1 | 18 | 0 | 30 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 12.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 102 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 102 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 661 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 661 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 387 | |
▷ Named functions | 387 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/inc/datepicker/images/ui-bg_highlight-soft_0_ffffff_1x100.png | 0.08KB | 0.08KB | 0.00% |
admin/assets/inc/select2/3/select2x2.png | 0.64KB | 0.77KB | 0.00% |
admin/assets/images/acf-logo.png | 3.40KB | 3.39KB | 0.23% |
admin/assets/inc/datepicker/images/ui-icons_444444_256x240.png | 3.68KB | 4.17KB | 0.00% |
admin/assets/inc/select2/3/select2.png | 0.51KB | 0.99KB | 0.00% |