Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲5.90MB] [CPU: ▲30.87ms] 75% from 4 tests
An overview of server-side resources used by Contact List – Premium Staff Listing, Business Directory & Address Book
Please have a look at the following items
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.90MB on /wp-admin/edit.php?post_type=contact&page=contact-list-import)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.27 ▲5.80 | 72.59 ▲29.61 |
Dashboard /wp-admin | 9.29 ▲5.98 | 87.23 ▲35.66 |
Posts /wp-admin/edit.php | 9.29 ▲5.93 | 90.46 ▲36.18 |
Add New Post /wp-admin/post-new.php | 11.76 ▲5.87 | 121.18 ▲22.03 |
Media Library /wp-admin/upload.php | 9.29 ▲6.06 | 82.32 ▲47.64 |
All Contacts /wp-admin/edit.php?post_type=contact | 9.29 | 75.50 |
Help / Support /wp-admin/edit.php?post_type=contact&page=contact-list-support | 9.29 | 68.90 |
Mail log /wp-admin/edit.php?post_type=contact&page=contact-list-mail-log | 9.29 | 74.31 |
Printable list /wp-admin/edit.php?post_type=contact&page=contact-list-printable | 9.29 | 65.99 |
Export contacts /wp-admin/edit.php?post_type=contact&page=contact-list-export | 9.29 | 74.90 |
Contact List /wp-admin/options-general.php?page=contact-list | 9.29 | 77.78 |
Groups /wp-admin/edit-tags.php?taxonomy=contact-group&post_type=contact | 9.29 | 70.28 |
Send email /wp-admin/edit.php?post_type=contact&page=contact-list-send-email | 9.29 | 68.03 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.29 | 66.37 |
Import contacts /wp-admin/edit.php?post_type=contact&page=contact-list-import | 9.29 | 66.88 |
Server storage [IO: ▲5.35MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 255 new files
Database: 2 new tables, 13 new options
New tables |
---|
wp_contact_list_log |
wp_cl_sent_mail_log |
New WordPress options |
---|
db_upgraded |
fs_accounts |
contact-list-sc |
fs_active_plugins |
contact_list_settings |
contact_list_metadata_fixed_1000 |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Contact List – Premium Staff Listing, Business Directory & Address Book
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,983 ▲196 | 13.85 ▼0.91 | 8.84 ▲6.74 | 27.70 ▼16.14 |
Dashboard /wp-admin | 2,294 ▲117 | 5.55 ▼0.08 | 97.58 ▲2.01 | 48.30 ▲1.32 |
Posts /wp-admin/edit.php | 2,200 ▲100 | 2.03 ▼0.06 | 40.89 ▼0.74 | 42.86 ▲2.94 |
Add New Post /wp-admin/post-new.php | 1,594 ▲68 | 22.03 ▼1.22 | 720.56 ▲112.74 | 53.09 ▼17.56 |
Media Library /wp-admin/upload.php | 1,496 ▲93 | 4.30 ▲0.10 | 97.56 ▼3.40 | 49.34 ▲5.45 |
All Contacts /wp-admin/edit.php?post_type=contact | 1,390 | 2.16 | 38.41 | 54.66 |
Help / Support /wp-admin/edit.php?post_type=contact&page=contact-list-support | 1,057 | 1.70 | 29.87 | 39.35 |
Mail log /wp-admin/edit.php?post_type=contact&page=contact-list-mail-log | 917 | 1.69 | 29.61 | 32.52 |
Printable list /wp-admin/edit.php?post_type=contact&page=contact-list-printable | 973 | 1.81 | 25.44 | 38.36 |
Export contacts /wp-admin/edit.php?post_type=contact&page=contact-list-export | 1,035 | 1.92 | 29.58 | 38.95 |
Contact List /wp-admin/options-general.php?page=contact-list | 1,106 | 1.69 | 27.44 | 61.82 |
Groups /wp-admin/edit-tags.php?taxonomy=contact-group&post_type=contact | 1,357 | 2.36 | 33.00 | 34.13 |
Send email /wp-admin/edit.php?post_type=contact&page=contact-list-send-email | 961 | 1.81 | 25.41 | 36.96 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,161 | 1.69 | 26.33 | 32.36 |
Import contacts /wp-admin/edit.php?post_type=contact&page=contact-list-import | 1,032 | 1.80 | 24.99 | 36.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/contact-list/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_contact_list_log
- wp_cl_sent_mail_log
- This plugin did not uninstall successfully, leaving 13 options in the database
- contact-list-sc
- contact_list_version
- contact_list_settings
- fs_accounts
- fs_debug_mode
- fs_active_plugins
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- contact_list_metadata_fixed_1000
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'ContactListPublicHooks' not found in wp-content/plugins/contact-list/templates/contact-card.php:19
- > PHP Notice
Undefined variable: id in wp-content/plugins/contact-list/templates/contact-card.php on line 17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
contact-list/contact-list.php Passed 13 tests
The primary PHP file in "Contact List – Premium Staff Listing, Business Directory & Address Book" version 2.9.82 is used by WordPress to initiate all plugin functionality
72 characters long description:
Easily display contact information on your site with this simple plugin.
Code Analysis 95% from 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 plugin52,185 lines of code in 195 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 156 | 9,481 | 17,867 | 43,119 |
PO File | 6 | 1,518 | 4,100 | 3,804 |
SVG | 8 | 10 | 1 | 2,702 |
CSS | 19 | 1 | 20 | 2,363 |
JavaScript | 6 | 34 | 59 | 197 |
PHP code 0% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,096)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 177)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 64.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 177.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 87 | |
▷ Abstract classes | 2 | 2.30% |
▷ Concrete classes | 85 | 97.70% |
▷ Final classes | 0 | 0.00% |
Methods | 1,425 | |
▷ Static methods | 244 | 17.12% |
▷ Public methods | 1,020 | 71.58% |
▷ Protected methods | 17 | 1.19% |
▷ Private methods | 388 | 27.23% |
Functions | 108 | |
▷ Named functions | 108 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 153 | |
▷ Global constants | 106 | 69.28% |
▷ Class constants | 47 | 30.72% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/search-form-sample.png | 5.89KB | 4.30KB | ▼ 26.96% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |