Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.41ms] Passed 4 tests
This is a short check of server-side resources used by Organization chart
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.75 ▼3.32 |
Dashboard /wp-admin | 3.36 ▲0.02 | 49.19 ▼18.47 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 50.52 ▲2.10 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 85.83 ▼7.47 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 39.90 ▼0.39 |
Popup Themes /wp-admin/admin.php?page=wpda_chart_tree_popup_themes | 3.28 | 42.28 |
Featured Plugins /wp-admin/admin.php?page=wpda_chart_featured_plugins | 3.26 | 34.80 |
Hire an Expert /wp-admin/admin.php?page=wpda_chart_hire_expert | 3.25 | 36.54 |
Themes /wp-admin/admin.php?page=wpda_chart_tree_themes | 3.26 | 34.05 |
User Permissions /wp-admin/admin.php?page=wpda_chart_tree_user_permissions | 3.28 | 34.17 |
Charts /wp-admin/admin.php?page=wpda_chart_tree_page | 3.25 | 32.25 |
Server storage [IO: ▲1.04MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 96 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_wpda_org_chart_popup_theme |
wp_wpda_org_chart_tree |
wp_wpda_org_chart_theme |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
wpda_org_chart_version |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Organization chart
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲127 | 14.35 ▲0.00 | 2.66 ▲0.70 | 48.41 ▲3.18 |
Dashboard /wp-admin | 2,250 ▲76 | 5.62 ▲0.04 | 91.24 ▼5.80 | 39.58 ▼2.00 |
Posts /wp-admin/edit.php | 2,152 ▲49 | 2.01 ▲0.07 | 39.42 ▲0.43 | 37.06 ▲3.38 |
Add New Post /wp-admin/post-new.php | 6,414 ▲4,888 | 27.99 ▲4.50 | 940.37 ▲211.70 | 39.57 ▼17.73 |
Media Library /wp-admin/upload.php | 1,455 ▲58 | 4.20 ▲0.09 | 113.39 ▼3.06 | 47.35 ▼2.38 |
Popup Themes /wp-admin/admin.php?page=wpda_chart_tree_popup_themes | 973 | 2.02 | 30.52 | 48.89 |
Featured Plugins /wp-admin/admin.php?page=wpda_chart_featured_plugins | 987 | 1.98 | 23.76 | 43.33 |
Hire an Expert /wp-admin/admin.php?page=wpda_chart_hire_expert | 903 | 1.97 | 23.33 | 28.37 |
Themes /wp-admin/admin.php?page=wpda_chart_tree_themes | 955 | 1.69 | 29.03 | 32.56 |
User Permissions /wp-admin/admin.php?page=wpda_chart_tree_user_permissions | 1,057 | 2.10 | 38.76 | 36.65 |
Charts /wp-admin/admin.php?page=wpda_chart_tree_page | 959 | 2.04 | 27.28 | 37.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie tables detected upon uninstall: 3 tables
- wp_wpda_org_chart_tree
- wp_wpda_org_chart_theme
- wp_wpda_org_chart_popup_theme
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- wpda_org_chart_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 45× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: params in wp-content/plugins/organization-chart/admin/theme-page/add-edit-theme-template.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/organization-chart/admin/theme-page/add-edit-theme-template.php on line 1
- > PHP Notice
Undefined variable: params in wp-content/plugins/organization-chart/admin/theme-page/add-edit-theme-template.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/organization-chart/admin/user-permissions/user-permissions-template.php:23
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/organization-chart/admin/popup-page/add-edit-popup-template.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/organization-chart/admin/popup-page/add-edit-popup-template.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/organization-chart/admin/popup-page/add-edit-popup-template.php on line 1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/organization-chart/admin/theme-page/add-edit-theme-template.php on line 21
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/organization-chart/admin/popup-page/add-edit-popup-template.php on line 1
- > PHP Notice
Undefined variable: params in wp-content/plugins/organization-chart/admin/user-permissions/user-permissions-template.php on line 12
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
5 plugin tags: organization chart, staff directory, employee list, organizational chart, org chart
organization-chart/wpdevart_chart.php 85% from 13 tests
The main PHP script in "Organization chart" version 1.4.8 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("organization-chart.php" instead of "wpdevart_chart.php")
- Description: Keep the plugin description shorter than 140 characters (currently 168 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected9,098 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 303 | 128 | 4,172 |
CSS | 13 | 58 | 57 | 2,752 |
JavaScript | 9 | 166 | 201 | 2,171 |
SVG | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 39.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 156.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 187 | |
▷ Static methods | 120 | 64.17% |
▷ Public methods | 103 | 55.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 84 | 44.92% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
48 PNG files occupy 0.62MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/hire_expert/3.png | 3.70KB | 2.55KB | ▼ 31.03% |
admin/assets/images/hire_expert/2.png | 2.18KB | 1.83KB | ▼ 15.82% |
admin/assets/images/person_images/chart-man-colo5.png | 19.25KB | 4.09KB | ▼ 78.73% |
admin/assets/images/default0.png | 3.21KB | 0.58KB | ▼ 82.01% |
admin/assets/images/featured_plugins/contact_forms.png | 14.11KB | 6.86KB | ▼ 51.39% |