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
Installer ran successfully
Server metrics [RAM: ▲0.64MB] [CPU: ▲3.45ms] Passed 4 tests
Analyzing server-side resources used by Employee Directory - Staff Directory and Listing
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.15 ▲0.64 | 47.41 ▲4.56 |
Dashboard /wp-admin | 52.50 ▲49.15 | 10,111,280.42 ▲10,111,225.53 |
Posts /wp-admin/edit.php | 4.03 ▲0.63 | 55.60 ▲1.80 |
Add New Post /wp-admin/post-new.php | 6.65 ▲0.72 | 95.16 ▼5.75 |
Media Library /wp-admin/upload.php | 3.83 ▲0.55 | 50.80 ▲13.20 |
Departments /wp-admin/edit-tags.php?taxonomy=employee-directory-department&post_type=employee-directory | 3.82 | 47.08 |
Add New Employee /wp-admin/post-new.php?post_type=employee-directory | 4.03 | 67.53 |
Employment Types /wp-admin/edit-tags.php?taxonomy=employee-directory-etype&post_type=employee-directory | 3.84 | 48.09 |
Need Support /wp-admin/edit.php?post_type=employee-directory&page=employee-directory-support | 3.80 | 40.93 |
Settings /wp-admin/edit.php?post_type=employee-directory&page=employee-directory-settings | 3.81 | 41.88 |
Employee Directory /wp-admin/edit.php?post_type=employee-directory | 4.05 | 54.12 |
Premium Plans /wp-admin/edit.php?post_type=employee-directory&page=employee-directory-license | 3.81 | 40.73 |
Instructions /wp-admin/edit.php?post_type=employee-directory&page=employee-directory-instruction | 3.80 | 40.38 |
Gender /wp-admin/edit-tags.php?taxonomy=employee-directory-gender&post_type=employee-directory | 3.84 | 42.82 |
Server storage [IO: ▲1.08MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 65 new files
Database: no new tables, 11 new options
New WordPress options |
---|
Activated_Plugin |
can_compress_scripts |
widget_theysaidso_widget |
employee-directory-etype_children |
theysaidso_admin_options |
Activation_term_flag |
employee-directory-gender_children |
widget_recent-comments |
mo_emp_activation_mail |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Employee Directory - Staff Directory and Listing
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,343 ▲597 | 14.84 ▲0.56 | 12.33 ▲10.79 | 43.61 ▲5.01 |
Dashboard /wp-admin | 2,355 ▲175 | 5.25 ▼0.42 | 102.79 ▲11.86 | 73.08 ▲31.61 |
Posts /wp-admin/edit.php | 2,261 ▲161 | 2.43 ▲0.41 | 34.45 ▼5.83 | 33.55 ▼4.15 |
Add New Post /wp-admin/post-new.php | 1,595 ▲67 | 23.35 ▲0.30 | 695.86 ▲64.87 | 165.81 ▲103.22 |
Media Library /wp-admin/upload.php | 1,661 ▲258 | 5.15 ▲0.98 | 107.08 ▲3.77 | 76.32 ▲31.57 |
Departments /wp-admin/edit-tags.php?taxonomy=employee-directory-department&post_type=employee-directory | 1,458 | 2.08 | 31.72 | 36.47 |
Add New Employee /wp-admin/post-new.php?post_type=employee-directory | 2,964 | 8.44 | 179.22 | 125.15 |
Employment Types /wp-admin/edit-tags.php?taxonomy=employee-directory-etype&post_type=employee-directory | 1,621 | 2.43 | 29.97 | 36.79 |
Need Support /wp-admin/edit.php?post_type=employee-directory&page=employee-directory-support | 4,228 | 2.66 | 52.47 | 56.82 |
Settings /wp-admin/edit.php?post_type=employee-directory&page=employee-directory-settings | 1,224 | 2.16 | 25.22 | 41.24 |
Employee Directory /wp-admin/edit.php?post_type=employee-directory | 2,273 | 2.20 | 38.20 | 32.54 |
Premium Plans /wp-admin/edit.php?post_type=employee-directory&page=employee-directory-license | 1,312 | 2.51 | 29.46 | 88.26 |
Instructions /wp-admin/edit.php?post_type=employee-directory&page=employee-directory-instruction | 1,330 | 2.23 | 25.61 | 43.38 |
Gender /wp-admin/edit-tags.php?taxonomy=employee-directory-gender&post_type=employee-directory | 1,684 | 2.10 | 34.08 | 35.36 |
Uninstaller [IO: ▲6.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- can_compress_scripts
- employee-directory-etype_children
- widget_theysaidso_widget
- mo_emp_activation_mail
- theysaidso_admin_options
- widget_recent-posts
- employee-directory-gender_children
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 119 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=employee-directory-gender&post_type=employee-directory
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 119 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=employee-directory-gender&post_type=employee-directory
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
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
Please fix the following items
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/employee-staff-directory/handler/mo-empdir-feedback_handler.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/employee-staff-directory/handler/mo-empdir-feedback_handler.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/employee-staff-directory/templates/mo-empdir-all_employees.php:2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/employee-staff-directory/mo-empdir-employee_directory.php on line 12
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/employee-staff-directory/templates/mo-empdir-layout1.php:10
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/image.php' (include_path='.:/usr/share/php') in wp-content/plugins/employee-staff-directory/mo-empdir-employee_directory.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'MOESD_taxonomies_handler' not found in wp-content/plugins/employee-staff-directory/templates/mo-empdir-content-staff-member.php:10
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/employee-staff-directory/handler/mo-empdir-feedback_handler.php on line 6
- > PHP Warning
require_once(ABSPATHwp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/employee-staff-directory/mo-empdir-employee_directory.php on line 12
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/employee-staff-directory/handler/mo-empdir-feedback_handler.php on line 6
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/edit.php?post_type=employee-directory&page=employee-directory-support
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $ is not a function" "TypeError: $ is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/employee-staff-directory/assets/js/views.js?ver=1.2.1:45:8)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/edit.php?post_type=employee-directory&page=employee-directory-support
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $ is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
employee-staff-directory/mo-empdir-employee_directory.php 85% from 13 tests
"Employee Directory - Staff Directory and Listing" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("employee-staff-directory.php" instead of "mo-empdir-employee_directory.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected3,591 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 514 | 37 | 3,024 |
CSS | 6 | 61 | 12 | 391 |
JavaScript | 2 | 24 | 1 | 174 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 12.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 72 | 97.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.70% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
22 PNG files occupy 0.60MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/normal.png | 15.74KB | 7.91KB | ▼ 49.78% |
assets/css/images/sad.png | 18.16KB | 8.79KB | ▼ 51.62% |
assets/css/images/angry.png | 20.40KB | 9.65KB | ▼ 52.68% |
assets/img/crown.png | 12.17KB | 5.93KB | ▼ 51.25% |
assets/img/profile_picture_format.png | 78.65KB | 25.30KB | ▼ 67.83% |