78% linkbuildr

Code Review | Linkbuildr

WordPress plugin Linkbuildr scored78%from 54 tests.

About plugin

  • Plugin page: linkbuildr
  • Plugin version: 1.3
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.3.2
  • WordPress version: 6.3.1
  • First release: Sep 10, 2019
  • Latest release: Jan 14, 2020
  • Number of updates: 14
  • Update frequency: every 9.1 days
  • Top authors: ftfdevelopment (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

50+ active /2,932 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.57MB] [CPU: ▼0.72ms] Passed 4 tests

Server-side resources used by Linkbuildr
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.06 ▲0.5945.16 ▲1.01
Dashboard /wp-admin3.91 ▲0.5652.02 ▼2.24
Posts /wp-admin/edit.php3.96 ▲0.6052.89 ▲3.58
Add New Post /wp-admin/post-new.php6.45 ▲0.5793.34 ▼5.24
Media Library /wp-admin/upload.php3.77 ▲0.5440.73 ▲7.15
New Email Template /wp-admin/admin.php?page=email-template-form3.7836.51
Dashboard /wp-admin/admin.php?page=linkbuildr-dashboard3.8440.42
Settings /wp-admin/admin.php?page=linkbuildr-user-settings3.7639.07
Ignored Domains /wp-admin/admin.php?page=ignored-domains3.8140.68
New Contact /wp-admin/admin.php?page=site-contact-form3.7935.26
Contacts /wp-admin/admin.php?page=site-contacts3.8239.83
Import Contacts /wp-admin/admin.php?page=import-site-contact3.7735.71
Email Templates /wp-admin/admin.php?page=email-templates3.7938.79

Server storage [IO: ▲0.41MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 64 new files
Database: 4 new tables, 12 new options
New tables
wp_linkbuildr_site_contacts
wp_linkbuildr_email_templates
wp_linkbuildr_ignore_domains
wp_linkbuildr_posts_site_contacts
New WordPress options
linkbuildr_show_notifications
theysaidso_admin_options
LINKBUILDR_DB_VERSION
widget_recent-comments
widget_theysaidso_widget
linkbuildr_unsubsribe_landing
widget_recent-posts
linkbuildr_default_send_on_publish
linkbuildr_unsubsribe_link_text
can_compress_scripts
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Linkbuildr
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲14514.40 ▲0.131.82 ▲0.0645.98 ▲0.81
Dashboard /wp-admin2,300 ▲1325.65 ▼0.1484.28 ▼6.9035.66 ▼7.32
Posts /wp-admin/edit.php2,214 ▲1142.15 ▲0.1741.71 ▲4.1538.26 ▲2.78
Add New Post /wp-admin/post-new.php1,595 ▲6919.64 ▼3.10656.23 ▲48.0776.64 ▲20.91
Media Library /wp-admin/upload.php1,510 ▲1104.34 ▲0.1799.28 ▼7.1642.15 ▼4.94
New Email Template /wp-admin/admin.php?page=email-template-form1,0062.1530.2539.17
Dashboard /wp-admin/admin.php?page=linkbuildr-dashboard1,5062.1629.3231.75
Settings /wp-admin/admin.php?page=linkbuildr-user-settings1,1152.2630.0935.44
Ignored Domains /wp-admin/admin.php?page=ignored-domains1,5272.1329.5334.48
New Contact /wp-admin/admin.php?page=site-contact-form1,0362.2628.4431.38
Contacts /wp-admin/admin.php?page=site-contacts1,1812.1130.6134.10
Import Contacts /wp-admin/admin.php?page=import-site-contact1,0812.1430.7639.82
Email Templates /wp-admin/admin.php?page=email-templates1,2292.1529.5342.00

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/linkbuildr/linkbuildr.php
    • > /wp-content/plugins/linkbuildr/includes/admin-notice-helper/admin-notice-helper.php
  • 51× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/linkbuildr/views/site-contact-importer.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/linkbuildr/views/linkbuildr-settings/linkbuildr-settings-textarea-unsubscribe-field.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/linkbuildr/classes/class-linkbuildr-site-contacts-table.php:29
    • > PHP Notice
      Undefined variable: already_unsubscribe_message in wp-content/plugins/linkbuildr/views/linkbuildr-settings/linkbuildr-settings-textarea-already-unsubscribed-field.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/linkbuildr/views/email-template-form-meta-box.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/linkbuildr/views/linkbuildr-settings/linkbuildr-settings-unsubscribe-section.php:3
    • > PHP Notice
      Undefined variable: nb in wp-content/plugins/linkbuildr/views/site-contact-form-meta-box.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/linkbuildr/views/linkbuildr-settings/linkbuildr-settings-checkbox-field-on-publish-default.php:4
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/class-wp-list-table.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/linkbuildr/classes/class-linkbuildr-ignored-domains-table.php on line 17
    • > PHP Fatal error
      Uncaught Error: Class 'Module_Abstract' not found in wp-content/plugins/linkbuildr/classes/class-linkbuildr-api.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were 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:
  • Screenshots: No descriptions were found for these screenshots #2, #3, #4 in linkbuildr/assets to your readme.txt
You can look at the official readme.txt

linkbuildr/linkbuildr.php Passed 13 tests

The main file in "Linkbuildr" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
97 characters long description:
Automated content promotion. Share your content with the people who care the most, automatically.

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
There were no executable files found in this plugin5,888 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
PHP387061,5343,540
CSS4112261,200
JavaScript101771581,120
SVG30228

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.28
Average class complexity30.80
▷ Minimum class complexity3.00
▷ Maximum class complexity128.00
Average method complexity3.23
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes110.00%
▷ Concrete classes990.00%
▷ Final classes00.00%
Methods140
▷ Static methods4632.86%
▷ Public methods8560.71%
▷ Protected methods5438.57%
▷ Private methods10.71%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants12
▷ Global constants325.00%
▷ Class constants975.00%
▷ Public constants9100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/social-fbsm.png1.60KB0.77KB▼ 52.17%
img/social-lnsm.png1.67KB0.84KB▼ 49.85%
img/social-twsm.png1.70KB0.87KB▼ 48.82%