78% eldolink

Code Review | Eldolink®

WordPress plugin Eldolink® scored78%from 54 tests.

About plugin

  • Plugin page: eldolink
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6
  • WordPress version: 6.3.1
  • First release: Sep 21, 2017
  • Latest release: Dec 9, 2020
  • Number of updates: 50
  • Update frequency: every 23.5 days
  • Top authors: eldolink (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,283 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼2.51ms] Passed 4 tests

A check of server-side resources used by Eldolink®
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.16469.51 ▲428.97
Dashboard /wp-admin3.37 ▲0.0746.31 ▼2.07
Posts /wp-admin/edit.php3.48 ▲0.1345.43 ▼3.30
Add New Post /wp-admin/post-new.php5.97 ▲0.0885.55 ▼4.26
Media Library /wp-admin/upload.php3.29 ▲0.0733.19 ▼0.39
Settings /wp-admin/admin.php?page=eldolink_settings3.2630.95
Modals /wp-admin/admin.php?page=eldolink_modals3.25294.74
Help /wp-admin/admin.php?page=eldolink_help3.2632.51

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 11 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_eldolink_dynamic
widget_eldolink_catcher
theysaidso_admin_options
widget_eldolink_content
widget_theysaidso_widget
widget_eldolink_modal
can_compress_scripts
db_upgraded
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Eldolink®
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,988 ▲25314.17 ▼0.2013.13 ▲11.1237.64 ▼5.77
Dashboard /wp-admin2,262 ▲745.13 ▼0.72109.25 ▲7.2938.75 ▼2.94
Posts /wp-admin/edit.php2,146 ▲572.34 ▲0.3136.64 ▼2.7733.21 ▼1.62
Add New Post /wp-admin/post-new.php1,561 ▲4223.11 ▼0.04618.24 ▼38.4232.88 ▼25.10
Media Library /wp-admin/upload.php1,447 ▲594.44 ▲0.2699.52 ▼1.0541.91 ▼2.65
Settings /wp-admin/admin.php?page=eldolink_settings8932.0029.5126.51
Modals /wp-admin/admin.php?page=eldolink_modals9892.2528.2926.32
Help /wp-admin/admin.php?page=eldolink_help9802.1828.7426.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 11 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_eldolink_banner
    • widget_eldolink_dynamic
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_eldolink_modal
    • can_compress_scripts
    • widget_eldolink_content
    • ...

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
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=eldolink_modals
    • > Notice in wp-content/plugins/eldolink/wp-eldolink.php+509
    Undefined property: stdClass::$id
    • > GET request to /wp-admin/admin.php?page=eldolink_modals
    • > Notice in wp-content/plugins/eldolink/wp-eldolink.php+259
    Undefined property: stdClass::$pricing_model
    • > GET request to /wp-admin/admin.php?page=eldolink_modals
    • > Notice in wp-content/plugins/eldolink/wp-eldolink.php+259
    Trying to get property 'identifier' of non-object
  • 13 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=eldolink_modals
    • > Notice in wp-content/plugins/eldolink/wp-eldolink.php+690
    Undefined property: stdClass::$name
    • > GET request to /wp-admin/admin.php?page=eldolink_modals
    • > Notice in wp-content/plugins/eldolink/wp-eldolink.php+689
    Undefined property: stdClass::$identifier

SRP 50% 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 take a closer look at the following
  • 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/eldolink/includes/widget_content.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/eldolink/includes/dynamic.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/eldolink/includes/catcher.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/eldolink/wp-eldolink.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/eldolink/includes/widget_modal.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/eldolink/includes/widget_catcher.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/eldolink/includes/widget_banner.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/eldolink/includes/modal.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/eldolink/includes/widget_dynamic.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/eldolink/includes/banner.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: affiliate program, wellness, slimdoo, adserver, eldolink...

eldolink/wp-eldolink.php 92% from 13 tests

"Eldolink®" version 1.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("eldolink.php" instead of "wp-eldolink.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,723 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP12265621,706
JavaScript18017

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity10.36
▷ Minimum class complexity3.00
▷ Maximum class complexity41.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods65
▷ Static methods812.31%
▷ Public methods65100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions00.00%
▷ Anonymous functions7100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin