10% leaddyno

Code Review | LeadDyno Wordpress Plugin

WordPress plugin LeadDyno Wordpress Plugin scored10%from 54 tests.

About plugin

  • Plugin page: leaddyno
  • Plugin version: 1.10.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Jun 12, 2014
  • Latest release: Sep 10, 2021
  • Number of updates: 48
  • Update frequency: every 55.2 days
  • Top authors: leaddyno (100%)

Code review

54 tests

User reviews

30 reviews

Install metrics

500+ active /13,396 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/leaddyno/class-leaddyno-admin.php+154
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.06MB] [CPU: ▼11.19ms] Passed 4 tests

Server-side resources used by LeadDyno Wordpress Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0842.45 ▼15.79
Dashboard /wp-admin3.42 ▲0.0350.05 ▼19.59
Posts /wp-admin/edit.php3.53 ▲0.1365.38 ▲12.71
Add New Post /wp-admin/post-new.php6.00 ▲0.0789.40 ▼9.34
Media Library /wp-admin/upload.php3.34 ▲0.0738.93 ▼0.02
LeadDyno /wp-admin/options-general.php?page=leaddyno3.2833.01

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
leaddyno
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by LeadDyno Wordpress Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.17 ▼0.411.62 ▼0.4542.92 ▼12.59
Dashboard /wp-admin2,210 ▲305.57 ▼0.1088.03 ▼14.2443.23 ▼0.80
Posts /wp-admin/edit.php2,116 ▲162.01 ▲0.0343.05 ▲6.0536.66 ▲1.35
Add New Post /wp-admin/post-new.php1,541 ▲1523.11 ▼0.10646.09 ▼44.8970.55 ▲15.31
Media Library /wp-admin/upload.php1,416 ▲134.14 ▼0.05118.69 ▲12.7247.77 ▼1.38
LeadDyno /wp-admin/options-general.php?page=leaddyno9082.1625.3531.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • leaddyno

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=leaddyno
    • > Notice in wp-content/plugins/leaddyno/class-leaddyno-admin.php+105
    Undefined property: LeadDyno_Admin::$toc
    • > GET request to /wp-admin/options-general.php?page=leaddyno
    • > Notice in wp-content/plugins/leaddyno/class-leaddyno-admin.php+254
    Undefined index: domain
    • > GET request to /wp-admin/options-general.php?page=leaddyno
    • > Notice in wp-content/plugins/leaddyno/class-leaddyno-admin.php+275
    Undefined index: disable_autowatch
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=leaddyno
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=leaddyno
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/leaddyno/class-leaddyno-admin.php:21

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: affiliate, outbound links, analysis, analytics, leaddyno...

leaddyno/class-leaddyno-admin.php 92% from 13 tests

The entry point to "LeadDyno Wordpress Plugin" version 1.10.6 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("leaddyno.php" instead of "class-leaddyno-admin.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
No dangerous file extensions were detected444 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP173128384
CSS112060

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
PNG images were not found in this plugin