78% doleads-integrator

Code Review | DoLeads Integrator

WordPress plugin DoLeads Integrator scored 78% from 54 tests.

About plugin

  • Plugin page: doleads-integrator
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5.3
  • WordPress version: 6.3.1
  • First release: Dec 1, 2020
  • Latest release: Feb 17, 2021
  • Number of updates: 6
  • Update frequency: every 13.2 days
  • Top authors: wpdomedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 357 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by DoLeads Integrator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.34 ▲1.50
Dashboard /wp-admin3.35 ▲0.0544.35 ▼7.60
Posts /wp-admin/edit.php3.40 ▲0.0545.93 ▲3.21
Add New Post /wp-admin/post-new.php5.93 ▲0.0594.07 ▲3.72
Media Library /wp-admin/upload.php3.27 ▲0.0435.93 ▲1.98
Edit Mapping /wp-admin/admin.php?page=ledo-integrator-edit-mapping3.2730.61
Integrated Forms /wp-admin/admin.php?page=ledo-integrator-integrated-forms3.2833.02
Add New /wp-admin/admin.php?page=ledo-integrator-add-new3.2431.57
Settings /wp-admin/admin.php?page=ledo-integrator-settings3.2832.34

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 27 new files
Database: 2 new tables, 8 new options
New tables
wp_ledo_integrator_forms
wp_ledo_integrator_field_mapping
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
ledo_integrator_settings_utm_data
ledo_integrator_company_access_token
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for DoLeads Integrator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲7913.40 ▼1.162.69 ▲0.8141.41 ▼0.07
Dashboard /wp-admin2,236 ▲444.87 ▼0.10110.99 ▲1.8242.32 ▲3.59
Posts /wp-admin/edit.php2,125 ▲362.02 ▲0.0040.92 ▲6.6537.39 ▲4.05
Add New Post /wp-admin/post-new.php1,541 ▲417.61 ▼5.55678.94 ▼0.1766.31 ▲16.42
Media Library /wp-admin/upload.php1,421 ▲364.19 ▼0.1893.48 ▼5.3442.01 ▼4.82
Edit Mapping /wp-admin/admin.php?page=ledo-integrator-edit-mapping9402.1931.2823.44
Integrated Forms /wp-admin/admin.php?page=ledo-integrator-integrated-forms8102.1824.2226.46
Add New /wp-admin/admin.php?page=ledo-integrator-add-new9382.1931.6225.69
Settings /wp-admin/admin.php?page=ledo-integrator-settings8722.0424.2828.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

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)
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/doleads-integrator/admin/partials/ledo-integrator-admin-display.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/doleads-integrator/admin/partials/ledo-integrator-admin-display-integrated-forms.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/doleads-integrator/admin/partials/ledo-integrator-admin-display-settings.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/doleads-integrator/admin/partials/ledo-integrator-admin-display-add-new.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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:
  • Plugin Name: You should set the name of your plugin on the first line ( === doleads-integrator === )
The official readme.txt might help

doleads-integrator/ledo-integrator.php 85% from 13 tests

"DoLeads Integrator" version 1.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("doleads-integrator.php" instead of "ledo-integrator.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,324 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP16287789902
JavaScript459118369
CSS15453

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity8.56
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods54
▷ Static methods23.70%
▷ Public methods4787.04%
▷ Protected methods00.00%
▷ Private methods712.96%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin