74% daisycon

Code Review | Daisycon prijsvergelijkers

WordPress plugin Daisycon prijsvergelijkers scored74%from 54 tests.

About plugin

  • Plugin page: daisycon
  • Plugin version: 4.8.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 18, 2013
  • Latest release: Oct 12, 2023
  • Number of updates: 91
  • Update frequency: every 40.4 days
  • Top authors: Daisycon (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

700+ active /23,018 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.82MB] [CPU: ▼2.78ms] Passed 4 tests

This is a short check of server-side resources used by Daisycon prijsvergelijkers
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.28 ▲0.8149.09 ▼0.03
Dashboard /wp-admin4.14 ▲0.7956.80 ▼13.40
Posts /wp-admin/edit.php4.25 ▲0.8959.25 ▲8.38
Add New Post /wp-admin/post-new.php6.72 ▲0.83102.03 ▼6.06
Media Library /wp-admin/upload.php4.06 ▲0.8350.08 ▲13.13
Dating /wp-admin/admin.php?page=dating4.0340.54
Energie /wp-admin/admin.php?page=energy-nl4.0340.85
Prefill energie /wp-admin/admin.php?page=prefill-energy-nl4.0340.62
Introductie /wp-admin/admin.php?page=daisycontools4.0343.94
Leaseauto /wp-admin/admin.php?page=car-lease4.0341.53
Zorgverzekering /wp-admin/admin.php?page=health-insurance4.0343.05
Telecom /wp-admin/admin.php?page=telecom4.0342.14
Sim only /wp-admin/admin.php?page=sim-only4.0342.37
Vakantie /wp-admin/admin.php?page=vacation4.0338.09
Alles in één /wp-admin/admin.php?page=all-in-one4.0342.50

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 26 new files
Database: 2 new tables, 6 new options
New tables
wp_daisycon_tools_settings
wp_daisycon_tools
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Daisycon prijsvergelijkers
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,997 ▲23613.82 ▼0.358.34 ▲6.7239.74 ▲1.98
Dashboard /wp-admin2,302 ▲1255.66 ▲0.1083.24 ▼15.4438.72 ▼5.69
Posts /wp-admin/edit.php2,208 ▲1081.98 ▼0.0340.08 ▲3.4537.54 ▲1.51
Add New Post /wp-admin/post-new.php1,581 ▲4723.41 ▲5.27675.60 ▲9.8056.19 ▼13.57
Media Library /wp-admin/upload.php1,505 ▲1054.10 ▼0.20115.41 ▲0.3847.31 ▲2.70
Dating /wp-admin/admin.php?page=dating1,0402.1628.7750.63
Energie /wp-admin/admin.php?page=energy-nl1,0402.1329.7631.18
Prefill energie /wp-admin/admin.php?page=prefill-energy-nl1,0412.1626.0333.66
Introductie /wp-admin/admin.php?page=daisycontools1,1822.0024.9332.05
Leaseauto /wp-admin/admin.php?page=car-lease1,0402.1526.1533.30
Zorgverzekering /wp-admin/admin.php?page=health-insurance1,0442.1425.7032.21
Telecom /wp-admin/admin.php?page=telecom1,1632.1026.9032.98
Sim only /wp-admin/admin.php?page=sim-only1,1272.1024.7232.92
Vakantie /wp-admin/admin.php?page=vacation1,0372.1427.8333.57
Alles in één /wp-admin/admin.php?page=all-in-one1,0402.1525.5431.73

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_daisycon_tools_settings
    • wp_daisycon_tools
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/daisycon/includes/database.php on line 11
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/daisycon/includes/database.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/daisycon/includes/database.php:31
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/daisycon/includes/database.php:31

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 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

daisycon/daisycon.php 92% from 13 tests

The main file in "Daisycon prijsvergelijkers" v. 4.8.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 336 characters long)

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
Everything looks great! No dangerous files found in this plugin5,632 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP226514025,399
CSS1190162
JavaScript228171

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code1.19
Average class complexity47.30
▷ Minimum class complexity6.00
▷ Maximum class complexity125.00
Average method complexity20.29
▷ Minimum method complexity1.00
▷ Maximum method complexity74.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods48
▷ Static methods4491.67%
▷ Public methods48100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin