78% e-boekhoudennl-connector

Code Review | e-Boekhouden.nl

WordPress plugin e-Boekhouden.nl scored78%from 54 tests.

About plugin

  • Plugin page: e-boekhoudennl-co...
  • Plugin version: 1.9.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1
  • WordPress version: 6.3.1
  • First release: Sep 6, 2016
  • Latest release: Sep 6, 2016
  • Number of updates: 9
  • Update frequency: every 1.2 days
  • Top authors: eboekhouden (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /4,333 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▼1.42ms] Passed 4 tests

A check of server-side resources used by e-Boekhouden.nl
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1842.07 ▲5.12
Dashboard /wp-admin3.59 ▲0.2852.38 ▲5.86
Posts /wp-admin/edit.php3.64 ▲0.2846.20 ▼1.62
Add New Post /wp-admin/post-new.php6.10 ▲0.2283.78 ▼13.67
Media Library /wp-admin/upload.php3.45 ▲0.2238.76 ▲4.51
Settings /wp-admin/admin.php?page=e-boekhoudennl-connector/eboekhouden-settings.php/settings3.3932.50
Orders /wp-admin/admin.php?page=e-boekhoudennl-connector/eboekhouden.php/orders3.4329.55
Products /wp-admin/admin.php?page=e-boekhoudennl-connector/eboekhouden.php/products3.4130.16

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for e-Boekhouden.nl
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.21 ▼1.071.64 ▼0.0847.29 ▲4.30
Dashboard /wp-admin2,237 ▲525.98 ▲1.07110.60 ▲5.3841.93 ▼0.66
Posts /wp-admin/edit.php2,117 ▲252.05 ▼0.0035.03 ▼1.2034.67 ▲0.26
Add New Post /wp-admin/post-new.php1,557 ▲1323.22 ▲5.02673.31 ▼3.8458.06 ▲7.97
Media Library /wp-admin/upload.php1,422 ▲314.21 ▲0.03101.03 ▼0.1543.81 ▼1.30
Settings /wp-admin/admin.php?page=e-boekhoudennl-connector/eboekhouden-settings.php/settings9342.0521.7927.64
Orders /wp-admin/admin.php?page=e-boekhoudennl-connector/eboekhouden.php/orders9972.0623.0124.57
Products /wp-admin/admin.php?page=e-boekhoudennl-connector/eboekhouden.php/products9132.0424.2727.96

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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
These server-side errors were triggered
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=e-boekhoudennl-connector/eboekhouden-settings.php/settings
    • > Notice in wp-content/plugins/e-boekhoudennl-connector/includes/eboekhouden.class.php+134
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/admin.php?page=e-boekhoudennl-connector/eboekhouden.php/products
    • > Notice in wp-content/plugins/e-boekhoudennl-connector/includes/lists/eboekhouden-product-list-table.php+230
    Undefined variable: products
    • > GET request to /wp-admin/admin.php?page=e-boekhoudennl-connector/eboekhouden.php/products
    • > Warning in wp-content/plugins/e-boekhoudennl-connector/includes/lists/eboekhouden-product-list-table.php+232
    usort() expects parameter 1 to be array, null given

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 20× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Constant EBOEKHOUDEN_CONFIGURATION already defined in wp-content/plugins/e-boekhoudennl-connector/includes/defines.php on line 66
    • > PHP Notice
      Constant EBOEKHOUDEN_SUBMENU_MAIN already defined in wp-content/plugins/e-boekhoudennl-connector/includes/defines.php on line 67
    • > PHP Notice
      Constant EBOEKHOUDEN_SUBMENU_ORDERS already defined in wp-content/plugins/e-boekhoudennl-connector/includes/defines.php on line 68
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/e-boekhoudennl-connector/includes/lists/eboekhouden-order-list-table.php on line 4
    • > PHP Notice
      Constant EBOEKHOUDEN_CONFIG_ACCOUNT_SETTING_DESC already defined in wp-content/plugins/e-boekhoudennl-connector/includes/defines.php on line 19
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/e-boekhoudennl-connector/includes/lists/eboekhouden-product-list-table.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/e-boekhoudennl-connector/includes/lists/eboekhouden-product-list-table.php on line 4
    • > PHP Notice
      Constant EBOEKHOUDEN_SUBMENU_CATEGORIES already defined in wp-content/plugins/e-boekhoudennl-connector/includes/defines.php on line 70
    • > PHP Notice
      Constant EBOEKHOUDEN_CONFIG_PASS_SETTING_LABEL already defined in wp-content/plugins/e-boekhoudennl-connector/includes/defines.php on line 22
    • > PHP Notice
      Constant EBOEKHOUDEN_CONFIG_GUID_SETTING_DESC already defined in wp-content/plugins/e-boekhoudennl-connector/includes/defines.php on line 25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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:
  • Tags: Please delete some tags, you are using 28 tag instead of maximum 10
The official readme.txt might help

e-boekhoudennl-connector/eboekhouden.php 92% from 13 tests

The main file in "e-Boekhouden.nl" v. 1.9.3 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:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("e-boekhoudennl-connector.php" instead of "eboekhouden.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,292 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP83923151,292

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity23.83
▷ Minimum class complexity10.00
▷ Maximum class complexity38.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods81
▷ Static methods911.11%
▷ Public methods7592.59%
▷ Protected methods67.41%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants96
▷ Global constants96100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin