78% business-contacts-authentic-verifiable-business-leads

Code Review | Get Telephone Contacts of Prospective Customers

WordPress plugin Get Telephone Contacts of Prospective Customers scored 78% from 54 tests.

About plugin

  • Plugin page: business-contacts...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.0.2
  • WordPress version: 6.3.1
  • First release: Oct 15, 2022
  • Latest release: Oct 19, 2022
  • Number of updates: 10
  • Update frequency: every 0.5 days
  • Top authors: requested (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 156 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.79ms] Passed 4 tests

An overview of server-side resources used by Get Telephone Contacts of Prospective Customers
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.69 ▼6.18
Dashboard /wp-admin3.33 ▲0.0248.59 ▼1.69
Posts /wp-admin/edit.php3.38 ▲0.0248.57 ▲3.70
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.45 ▼1.97
Media Library /wp-admin/upload.php3.25 ▲0.0234.75 ▼1.33
Settings /wp-admin/admin.php?page=my_contacts3.73471.89

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Get Telephone Contacts of Prospective Customers
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,948 ▲20255.15 ▲40.91323.16 ▲321.2486.41 ▲34.82
Dashboard /wp-admin2,215 ▲305.88 ▲0.99103.60 ▼11.9740.76 ▼1.37
Posts /wp-admin/edit.php2,098 ▲92.00 ▼0.0133.94 ▼2.4734.09 ▼1.43
Add New Post /wp-admin/post-new.php1,524 ▼1017.60 ▼5.45610.04 ▼76.8451.86 ▼3.87
Media Library /wp-admin/upload.php1,400 ▲154.18 ▼0.0394.30 ▼4.6041.55 ▼3.63
Settings /wp-admin/admin.php?page=my_contacts83219.98405.58121.26

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=my_contacts
    • > Notice in wp-content/plugins/business-contacts-authentic-verifiable-business-leads/includes/mycontacts.php+12
    Trying to get property 'status' of non-object
    • > GET request to /wp-admin/admin.php?page=my_contacts
    • > Notice in wp-content/plugins/business-contacts-authentic-verifiable-business-leads/includes/mycontacts.php+13
    Trying to get property 'acctid' of non-object
    • > GET request to /wp-admin/admin.php?page=my_contacts
    • > Notice in wp-content/plugins/business-contacts-authentic-verifiable-business-leads/includes/mycontacts.php+14
    Trying to get property 'message' of non-object
    • > GET request to /wp-admin/admin.php?page=my_contacts
    • > Notice in wp-content/plugins/business-contacts-authentic-verifiable-business-leads/includes/mycontacts.php+15
    Trying to get property 'name' of non-object
    • > GET request to /wp-admin/admin.php?page=my_contacts
    • > Notice in wp-content/plugins/business-contacts-authentic-verifiable-business-leads/includes/mycontacts.php+16
    Trying to get property 'your_list' of non-object
    • > GET request to /wp-admin/admin.php?page=my_contacts
    • > Notice in wp-content/plugins/business-contacts-authentic-verifiable-business-leads/includes/mycontacts.php+17
    Trying to get property 'get_all_country' of non-object

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: Call to undefined function wp_head() in wp-content/plugins/business-contacts-authentic-verifiable-business-leads/includes/dashboard.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/business-contacts-authentic-verifiable-business-leads/includes/mycontacts.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention: The official readme.txt is a good inspiration

business-contacts-authentic-verifiable-business-leads/business_contacts.php 85% from 13 tests

This is the main PHP file of "Get Telephone Contacts of Prospective Customers" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("business-contacts-authentic-verifiable-business-leads.php" instead of "business_contacts.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected19,926 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
CSS766021519,075
JavaScript132277580
PHP37429271

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
4 PNG files occupy 0.31MB with 0.24MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo.png32.46KB1.65KB▼ 94.93%
images/home1.png204.95KB49.69KB▼ 75.75%
images/name.png46.60KB13.99KB▼ 69.98%
images/name2.png35.82KB10.82KB▼ 69.80%