74% custom-contact-details-with-wp-list

Code Review | Custom Contact Details With WP List

WordPress plugin Custom Contact Details With WP List scored74%from 54 tests.

About plugin

  • Plugin page: custom-contact-de...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.3
  • WordPress version: 6.3.1
  • First release: Dec 30, 2019
  • Latest release: Dec 30, 2019
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: mehtashail (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /659 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.65ms] Passed 4 tests

This is a short check of server-side resources used by Custom Contact Details With WP List
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.63 ▼2.01
Dashboard /wp-admin3.36 ▲0.0146.18 ▼15.92
Posts /wp-admin/edit.php3.41 ▲0.0546.14 ▼1.08
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.82 ▼7.57
Media Library /wp-admin/upload.php3.28 ▲0.0536.05 ▲1.78
Details /wp-admin/admin.php?page=details3.2532.68
Add new /wp-admin/admin.php?page=details_form3.2531.59

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: 1 new table, 7 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

Custom Contact Details With WP List: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.35 ▲0.001.70 ▲0.1042.67 ▼0.21
Dashboard /wp-admin2,222 ▲415.53 ▼0.1782.43 ▼21.4237.59 ▼2.46
Posts /wp-admin/edit.php2,130 ▲302.01 ▼0.0034.30 ▼3.6430.74 ▼3.60
Add New Post /wp-admin/post-new.php1,553 ▲2523.03 ▲0.08594.00 ▼51.0172.33 ▲14.10
Media Library /wp-admin/upload.php1,427 ▲244.17 ▼0.0099.78 ▲2.8143.61 ▼0.31
Details /wp-admin/admin.php?page=details9802.0025.4327.89
Add new /wp-admin/admin.php?page=details_form8822.0027.1728.28

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 plugin did not uninstall successfully, leaving 1 table in the database
    • wp_wsc
  • The uninstall procedure has failed, leaving 7 options in the database
    • wpsc_db_version
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% 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)
Everything seems fine, however 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/custom-contact-details-with-wp-list/custom-contact-details-with-wplist.php:15

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


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
7 plugin tags: crud, table, details list, database, wp list...

custom-contact-details-with-wp-list/custom-contact-details-with-wplist.php 85% from 13 tests

"Custom Contact Details With WP List" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: Name the main plugin file the same as the plugin slug ("custom-contact-details-with-wp-list.php" instead of "custom-contact-details-with-wplist.php")

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
No dangerous file extensions were detected279 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin