Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲3.70MB] [CPU: ▲21.73ms] Passed 4 tests
An overview of server-side resources used by Staff Directory - Employee Directory for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.88 ▲3.42 | 62.35 ▲21.72 |
Dashboard /wp-admin | 7.15 ▲3.81 | 120.65 ▲61.56 |
Posts /wp-admin/edit.php | 7.20 ▲3.85 | 78.56 ▲27.29 |
Add New Post /wp-admin/post-new.php | 9.68 ▲3.80 | 106.29 ▲7.96 |
Media Library /wp-admin/upload.php | 6.99 ▲3.76 | 66.26 ▲29.96 |
Support /wp-admin/admin.php?page=empd_com_support | 6.99 | 55.68 |
Employment Types /wp-admin/edit-tags.php?taxonomy=employment_type&post_type=emd_employee | 7.02 | 59.96 |
Getting Started /wp-admin/admin.php?page=empd_com | 6.98 | 60.06 |
CSV Import/Export /wp-admin/admin.php?page=operations_emd_employee | 6.96 | 56.62 |
Job Titles /wp-admin/edit-tags.php?taxonomy=jobtitles&post_type=emd_employee | 7.03 | 66.25 |
Genders /wp-admin/edit-tags.php?taxonomy=gender&post_type=emd_employee | 7.02 | 61.61 |
Marital Statuses /wp-admin/edit-tags.php?taxonomy=marital_status&post_type=emd_employee | 7.02 | 60.99 |
All Employees /wp-admin/edit.php?post_type=emd_employee | 7.14 | 61.27 |
Plugins /wp-admin/admin.php?page=empd_com_store | 7.00 | 53.22 |
Forms /wp-admin/admin.php?page=empd_com_forms | 6.97 | 55.52 |
Server storage [IO: ▲4.39MB] [DB: ▲0.03MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 293 new files
Database: 1 new table, 25 new options
New tables |
---|
wp_emd_sessions |
New WordPress options |
---|
empd_com_attr_list |
empd_com_tax_list |
empd_com_glob_init_list |
empd_com_activation_date |
empd_com_add_caps |
db_upgraded |
widget_empd_com_recent_employees_widget |
widget_recent-posts |
widget_empd_com_featured_employees_widget |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Staff Directory - Employee Directory for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,996 ▲250 | 13.56 ▼0.81 | 1.61 ▼0.10 | 35.43 ▼5.63 |
Dashboard /wp-admin | 2,397 ▲206 | 5.89 ▲1.00 | 112.72 ▲11.80 | 52.50 ▲12.27 |
Posts /wp-admin/edit.php | 2,279 ▲187 | 2.16 ▲0.11 | 42.95 ▲1.32 | 41.40 ▲5.19 |
Add New Post /wp-admin/post-new.php | 1,752 ▲233 | 21.71 ▼1.46 | 571.20 ▼82.05 | 57.57 ▼1.37 |
Media Library /wp-admin/upload.php | 1,589 ▲201 | 4.29 ▲0.08 | 97.19 ▼15.60 | 44.91 ▼0.04 |
Support /wp-admin/admin.php?page=empd_com_support | 1,279 | 1.83 | 24.94 | 45.60 |
Employment Types /wp-admin/edit-tags.php?taxonomy=employment_type&post_type=emd_employee | 1,579 | 2.33 | 31.27 | 35.41 |
Getting Started /wp-admin/admin.php?page=empd_com | 3,081 | 2.07 | 44.59 | 132.79 |
CSV Import/Export /wp-admin/admin.php?page=operations_emd_employee | 1,038 | 1.68 | 24.58 | 42.96 |
Job Titles /wp-admin/edit-tags.php?taxonomy=jobtitles&post_type=emd_employee | 2,002 | 2.33 | 29.04 | 39.91 |
Genders /wp-admin/edit-tags.php?taxonomy=gender&post_type=emd_employee | 1,623 | 2.33 | 29.78 | 37.46 |
Marital Statuses /wp-admin/edit-tags.php?taxonomy=marital_status&post_type=emd_employee | 1,582 | 2.33 | 28.01 | 37.27 |
All Employees /wp-admin/edit.php?post_type=emd_employee | 1,327 | 2.36 | 35.99 | 36.21 |
Plugins /wp-admin/admin.php?page=empd_com_store | 1,307 | 1.84 | 25.53 | 35.19 |
Forms /wp-admin/admin.php?page=empd_com_forms | 1,126 | 1.99 | 35.11 | 30.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_emd_sessions
- Zombie WordPress options detected upon uninstall: 22 options
- empd_com_setup_pages
- widget_recent-posts
- widget_empd_com_recent_employees_widget
- empd_com_cust_roles
- empd_com_glob_forms_list
- empd_com_tax_list
- db_upgraded
- empd_com_add_caps
- widget_theysaidso_widget
- empd_com_init_tax
- ...
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 19× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/employee-directory/assets/ext/emd-meta-box/inc/init.php:2
- > PHP Fatal error
Uncaught Error: Class 'EMD_MB_Field' not found in wp-content/plugins/employee-directory/assets/ext/emd-meta-box/inc/fields/file-input.php:4
- > PHP Warning
Use of undefined constant EMPD_COM_PLUGIN_URL - assumed 'EMPD_COM_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/employee-directory/includes/admin/plugin-support.php on line 44
- > PHP Notice
Undefined variable: post in wp-content/plugins/employee-directory/layouts/widget-featured-employees-content.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/employee-directory/layouts/emd-register.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/employee-directory/assets/ext/emd-session/includes/emd-wp-session.php:86
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/employee-directory/assets/ext/emd-session/includes/emd-wp-session.php:86
- > PHP Notice
Undefined variable: post in wp-content/plugins/employee-directory/layouts/single-emd-employee.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/employee-directory/includes/admin/plugin-support.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/employee-directory/layouts/emd-login.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: intranet, active directory, org chart, directory, staff
employee-directory/employee-directory.php 85% from 13 tests
Analyzing the main PHP file in "Staff Directory - Employee Directory for WordPress" version 4.3
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 143 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; 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
Everything looks great! No dangerous files found in this plugin30,583 lines of code in 196 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 100 | 834 | 3,762 | 19,817 |
JavaScript | 52 | 526 | 731 | 5,642 |
SVG | 2 | 0 | 0 | 2,673 |
CSS | 42 | 113 | 125 | 2,451 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 20.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 143.00 |
Average method complexity | 4.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 60 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 60 | 100.00% |
▷ Final classes | 2 | 3.33% |
Methods | 343 | |
▷ Static methods | 212 | 61.81% |
▷ Public methods | 325 | 94.75% |
▷ Protected methods | 12 | 3.50% |
▷ Private methods | 6 | 1.75% |
Functions | 192 | |
▷ Named functions | 191 | 99.48% |
▷ Anonymous functions | 1 | 0.52% |
Constants | 17 | |
▷ Global constants | 17 | 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
76 compressed PNG files occupy 0.90MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/events-calendar.png | 4.67KB | 4.92KB | 0.00% |
assets/img/emd_templating_system.png | 23.46KB | 24.44KB | 0.00% |
assets/img/jui-img/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.08KB | 0.17KB | 0.00% |
assets/img/zoomin.png | 1.73KB | 1.81KB | 0.00% |
assets/img/jui-img/ui-bg_flat_0_aaaaaa_40x100.png | 0.08KB | 0.08KB | 0.00% |