10% celumconnect

Code Review | celum:connect

WordPress plugin celum:connect scored10%from 54 tests.

About plugin

  • Plugin page: celumconnect
  • Plugin version: 2.27
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Feb 7, 2019
  • Latest release: Mar 25, 2022
  • Number of updates: 41
  • Update frequency: every 28.1 days
  • Top authors: brixcrossmedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,051 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/celumconnect/celum_connect.php+67
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.68MB] [CPU: ▼52.91ms] Passed 4 tests

This is a short check of server-side resources used by celum:connect
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.32 ▼1.157.02 ▼32.98
Dashboard /wp-admin2.34 ▼1.019.62 ▼48.82
Posts /wp-admin/edit.php2.34 ▼1.028.77 ▼40.74
Add New Post /wp-admin/post-new.php2.34 ▼3.5513.83 ▼89.10
Media Library /wp-admin/upload.php2.34 ▼0.898.08 ▼25.28
celum:connect /wp-admin/options-general.php?page=celum_connect2.349.40

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 467 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

celum:connect: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.22 ▼1.481.82 ▲0.1047.67 ▲8.66
Dashboard /wp-admin2,207 ▲195.80 ▲0.88104.10 ▼0.4539.40 ▼4.71
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0136.93 ▲0.1135.25 ▲3.36
Add New Post /wp-admin/post-new.php6,190 ▲4,67019.14 ▼4.04904.69 ▲210.6355.97 ▼0.56
Media Library /wp-admin/upload.php1,392 ▲14.32 ▼0.0095.07 ▼2.6941.41 ▼1.92
celum:connect /wp-admin/options-general.php?page=celum_connect9752.0724.4727.38

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/celumconnect/celum_connect.php+67
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

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 errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=celum_connect
    • > Notice in wp-content/plugins/celumconnect/celum_connect.php+67
    Trying to access array offset on value of type bool
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=celum_connect
    • > Notice in wp-content/plugins/celumconnect/celum_connect_settings.php+121
    Undefined index: license_key
    • > GET request to /wp-admin/options-general.php?page=celum_connect
    • > Notice in wp-content/plugins/celumconnect/celum_connect_settings.php+75
    Undefined index: api_key
    • > GET request to /wp-admin/options-general.php?page=celum_connect
    • > Notice in wp-content/plugins/celumconnect/celum_connect_settings.php+133
    Undefined index: directdownload_secret
    • > GET request to /wp-admin/options-general.php?page=celum_connect
    • > Notice in wp-content/plugins/celumconnect/celum_connect_settings.php+81
    Undefined index: root_node
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=celum_connect
    • > Notice in wp-content/plugins/celumconnect/celum_connect_settings.php+91
    Undefined index: version
    • > GET request to /wp-admin/options-general.php?page=celum_connect
    • > Notice in wp-content/plugins/celumconnect/celum_connect_settings.php+100
    Undefined index: usage_download
    • > GET request to /wp-admin/options-general.php?page=celum_connect
    • > Notice in wp-content/plugins/celumconnect/celum_connect_settings.php+107
    Undefined index: usage_link
    • > GET request to /wp-admin/options-general.php?page=celum_connect
    • > Notice in wp-content/plugins/celumconnect/celum_connect_settings.php+114
    Undefined index: description_infofield
    • > GET request to /wp-admin/options-general.php?page=celum_connect
    • > Notice in wp-content/plugins/celumconnect/celum_connect_settings.php+127
    Undefined index: tab_name
    • > GET request to /wp-admin/options-general.php?page=celum_connect
    • > Notice in wp-content/plugins/celumconnect/celum_connect_settings.php+175
    Undefined index: supported_dfs
    • > GET request to /wp-admin/options-general.php?page=celum_connect
    • > Notice in wp-content/plugins/celumconnect/celum_connect_settings.php+139
    Undefined index: unknown_df
    • > GET request to /wp-admin/options-general.php?page=celum_connect
    • > Notice in wp-content/plugins/celumconnect/celum_connect_settings.php+145
    Undefined index: image_df
    • > GET request to /wp-admin/options-general.php?page=celum_connect
    • > Notice in wp-content/plugins/celumconnect/celum_connect_settings.php+151
    Undefined index: document_df
    • > GET request to /wp-admin/options-general.php?page=celum_connect
    • > Notice in wp-content/plugins/celumconnect/celum_connect_settings.php+157
    Undefined index: video_df
    • > GET request to /wp-admin/options-general.php?page=celum_connect
    • > Notice in wp-content/plugins/celumconnect/celum_connect_settings.php+163
    Undefined index: audio_df
    • > GET request to /wp-admin/options-general.php?page=celum_connect
    • > Notice in wp-content/plugins/celumconnect/celum_connect_settings.php+169
    Undefined index: text_df
    • > GET request to /wp-admin/options-general.php?page=celum_connect
    • > Notice in wp-content/plugins/celumconnect/celum_connect_settings.php+182
    Undefined index: dlf_publicUrl_mapping

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 items
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/celumconnect/celum_connect_ajax.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/celumconnect/celum_connect_media.php:13
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/celumconnect/celum_connect_ajax.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/celumconnect/block/index.php:34
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/image.php' (include_path='.:/usr/share/php') in wp-content/plugins/celumconnect/celum_connect_ajax.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/celumconnect/celum_connect_settings.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • License uri: Please fix this invalid URI: "https:/www.gnu.org/licenses/gpl-2.0.html"
You can take inspiration from this readme.txt

celumconnect/celum_connect.php 85% from 13 tests

"celum:connect" version 2.27's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 188 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("celumconnect.php" instead of "celum_connect.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin33,091 lines of code in 110 files:
LanguageFilesBlank linesComment linesLines of code
CSS163,37157820,144
JavaScript342,0512,11510,269
HTML4949301,157
PHP588611,079
SVG400300
PO File25778142

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions72
▷ Named functions6894.44%
▷ Anonymous functions45.56%
Constants4
▷ Global constants4100.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
49 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assetPicker/assetPicker_2.1/picker/logo.png2.08KB0.90KB▼ 56.75%
assetPicker/assetPicker_2.3/picker/inactive.png2.76KB0.12KB▼ 95.79%
images/copy.png0.42KB0.48KB0.00%
assetPicker/assetPicker_6.8.11/picker/inactive.png2.76KB0.12KB▼ 95.79%
assetPicker/assetPicker_6.8.11/picker/ooops.png6.88KB3.00KB▼ 56.45%