Benchmarks
Plugin footprint 63% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲8.86MB] [CPU: ▲66.33ms] 25% from 4 tests
Server-side resources used by Connections Business Directory
Please have a look at the following items
- RAM: Total memory usage should be kept under 10MB (currently 12.27MB on /wp-admin/admin.php?page=connections_roles)
- CPU: You should keep total CPU usage under 500.00ms (currently 541.48ms on /wp-admin/admin.php?page=connections_dashboard)
- Extra RAM: Extra memory usage must be kept under 5MB (currently 8.86MB on /wp-admin/admin.php?page=connections_roles)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 11.83 ▲8.37 | 107.73 ▲70.12 |
Dashboard /wp-admin | 12.35 ▲9.00 | 105.79 ▲46.84 |
Posts /wp-admin/edit.php | 12.42 ▲9.07 | 121.59 ▲73.25 |
Add New Post /wp-admin/post-new.php | 16.07 ▲10.19 | 163.48 ▲75.11 |
Media Library /wp-admin/upload.php | 12.22 ▲8.99 | 116.49 ▲86.21 |
Add Entry /wp-admin/admin.php?page=connections_add | 14.04 | 153.09 |
Dashboard /wp-admin/admin.php?page=connections_dashboard | 13.47 | 541.48 |
Categories /wp-admin/admin.php?page=connections_manage_category_terms | 13.07 | 104.64 |
Log Types /wp-admin/edit-tags.php?taxonomy=cn_log_type&post_type=cn_log | 12.38 | 96.07 |
All Logs /wp-admin/edit.php?post_type=cn_log | 12.35 | 100.15 |
Manage /wp-admin/admin.php?page=connections_manage | 13.36 | 105.18 |
Templates /wp-admin/admin.php?page=connections_templates | 12.28 | 97.69 |
Tools /wp-admin/admin.php?page=connections_tools | 12.31 | 92.46 |
Settings /wp-admin/admin.php?page=connections_settings | 13.28 | 111.28 |
Roles /wp-admin/admin.php?page=connections_roles | 12.27 | 95.07 |
Server storage [IO: ▲28.54MB] [DB: ▲0.12MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
These are issues you should consider
- Try to limit filesystem usage to 25MB (currently using 28.54MB)
Filesystem: 2,128 new files
Database: 13 new tables, 44 new options
New tables |
---|
wp_connections_term_taxonomy |
wp_connections_address |
wp_connections_email |
wp_connections |
wp_connections_social |
wp_connections_term_meta |
wp_connections_terms |
wp_connections_meta |
wp_connections_link |
wp_connections_messenger |
... |
New WordPress options |
---|
connections_fieldset-date |
db_upgraded |
connections_template_card |
connections_debug |
connections_google_maps_geocoding_api |
connections_display_general |
connections_geo |
connections_list_actions |
connections_options |
connections_fieldset-phone |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Connections Business Directory
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲140 | 14.21 ▼0.50 | 1.88 ▲0.23 | 36.93 ▼1.85 |
Dashboard /wp-admin | 2,275 ▲98 | 5.53 ▲0.02 | 96.63 ▼5.48 | 77.87 ▲34.02 |
Posts /wp-admin/edit.php | 2,198 ▲95 | 1.97 ▲0.03 | 39.53 ▲2.11 | 35.44 ▲2.09 |
Add New Post /wp-admin/post-new.php | 1,582 ▲56 | 20.31 ▼3.06 | 782.58 ▲184.36 | 77.87 ▲33.15 |
Media Library /wp-admin/upload.php | 1,486 ▲92 | 4.17 ▼0.00 | 112.73 ▲15.33 | 75.29 ▲29.28 |
Add Entry /wp-admin/admin.php?page=connections_add | 3,072 | 10.34 | 250.45 | 169.63 |
Dashboard /wp-admin/admin.php?page=connections_dashboard | 1,673 | 3.19 | 65.56 | 47.00 |
Categories /wp-admin/admin.php?page=connections_manage_category_terms | 1,835 | 6.38 | 112.36 | 84.53 |
Log Types /wp-admin/edit-tags.php?taxonomy=cn_log_type&post_type=cn_log | 1,487 | 2.27 | 31.18 | 36.11 |
All Logs /wp-admin/edit.php?post_type=cn_log | 1,164 | 1.91 | 36.24 | 32.74 |
Manage /wp-admin/admin.php?page=connections_manage | 1,327 | 2.84 | 41.44 | 33.19 |
Templates /wp-admin/admin.php?page=connections_templates | 1,189 | 2.53 | 35.25 | 29.82 |
Tools /wp-admin/admin.php?page=connections_tools | 1,187 | 2.66 | 38.03 | 25.79 |
Settings /wp-admin/admin.php?page=connections_settings | 3,086 | 7.69 | 169.59 | 188.31 |
Roles /wp-admin/admin.php?page=connections_roles | 1,477 | 2.56 | 36.04 | 31.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.11MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure failed, leaving 13 tables in the database
- wp_connections_phone
- wp_connections_date
- wp_connections_term_taxonomy
- wp_connections_address
- wp_connections_terms
- wp_connections
- wp_connections_email
- wp_connections_term_meta
- wp_connections_term_relationships
- wp_connections_link
- ...
- This plugin does not fully uninstall, leaving 44 options in the database
- connections_login
- connections_fieldset-email
- connections_fieldset-messenger
- connections_display_single
- connections_list_actions
- connections_fieldset-link
- connections_fieldset-social-networks
- connections_entry_actions
- connections_seo
- db_upgraded
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 7× PHP files output text when accessed directly:
- > /wp-content/plugins/connections/templates/entry/phone-numbers/phone-admin.php
- > /wp-content/plugins/connections/templates/entry/links/link-admin.php
- > /wp-content/plugins/connections/includes/Taxonomy/Partials/edit-taxonomy-term.php
- > /wp-content/plugins/connections/templates/entry/addresses/address-hcard.php
- > /wp-content/plugins/connections/templates/entry/email-addresses/email-admin.php
- > /wp-content/plugins/connections/templates/entry/messenger/messenger-admin.php
- > /wp-content/plugins/connections/templates/entry/social-networks/social-networks-admin.php
- 236× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/connections/includes/Taxonomy/Widget.php:19
- > PHP Fatal error
Uncaught Error: Call to a member function getName() on null in wp-content/plugins/connections/templates/entry/email-addresses/email-hcard.php:22
- > PHP Notice
Undefined variable: entry in wp-content/plugins/connections/templates/team-grid-card-slide/card.php on line 15
- > PHP Notice
Undefined variable: entry in wp-content/plugins/connections/templates/entry/email-addresses/email-hcard.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/connections/templates/entry/dates/date-hcard.php:61
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/connections/templates/entry/links/link-hcard.php on line 34
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/connections/templates/entry/phone-numbers/phone-hcard.php:76
- > PHP Fatal error
Uncaught Error: Call to a member function showUI() on null in wp-content/plugins/connections/includes/Taxonomy/Partials/manage-taxonomy-terms.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/connections/cache/index.php:2
- > PHP Fatal error
Uncaught Error: Class 'Connections_Directory\\Request\\Input' not found in wp-content/plugins/connections/includes/Request/Integer.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
connections/connections.php 92% from 13 tests
The principal PHP file in "Connections Business Directory" v. 10.4.59 is loaded by WordPress automatically on each request
You should first fix the following items:
- Requires at least: The required version number must match the one declared in readme.txt ("6.0" instead of "5.8")
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin106,576 lines of code in 1,910 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 446 | 27,598 | 55,289 | 70,903 |
SVG | 250 | 1 | 0 | 10,400 |
JSON | 955 | 0 | 0 | 7,685 |
CSS | 36 | 1,799 | 443 | 7,567 |
JavaScript | 206 | 1,718 | 2,151 | 7,070 |
Sass | 14 | 569 | 90 | 2,885 |
Markdown | 2 | 22 | 0 | 53 |
HTML | 1 | 0 | 0 | 13 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 225)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 24.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 343.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 225.00 |
Code structure | ||
---|---|---|
Namespaces | 62 | |
Interfaces | 7 | |
Traits | 21 | |
Classes | 343 | |
▷ Abstract classes | 15 | 4.37% |
▷ Concrete classes | 328 | 95.63% |
▷ Final classes | 97 | 29.57% |
Methods | 3,478 | |
▷ Static methods | 1,050 | 30.19% |
▷ Public methods | 2,841 | 81.68% |
▷ Protected methods | 309 | 8.88% |
▷ Private methods | 328 | 9.43% |
Functions | 232 | |
▷ Named functions | 86 | 37.07% |
▷ Anonymous functions | 146 | 62.93% |
Constants | 236 | |
▷ Global constants | 49 | 20.76% |
▷ Class constants | 187 | 79.24% |
▷ Public constants | 187 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
37 PNG files occupy 0.23MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icons/vcard/vcard_32.png | 1.52KB | 1.54KB | 0.00% |
assets/vendor/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/dist/images/search.png | 0.31KB | 0.27KB | ▼ 14.20% |
assets/images/icon-256x256.png | 62.01KB | 22.76KB | ▼ 63.30% |
assets/images/ui-icons_999999_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |