94% file-select-control-for-elementor

Code Review | File Select Control For Elementor

WordPress plugin File Select Control For Elementor scored 94% from 54 tests.

About plugin

  • Plugin page: file-select-contr...
  • Plugin version: 1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7.2
  • WordPress version: 5.8.1
  • First release: Jul 10, 2020
  • Latest release: May 18, 2021
  • Number of updates: 10
  • Update frequency: every 31.2 days
  • Top authors: abdulawal39 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 459 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼140.05ms] Passed 4 tests

Server-side resources used by File Select Control For Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1433.21 ▲11.51
Dashboard /wp-admin3.08 ▲0.0249.51 ▲5.61
Posts /wp-admin/edit.php3.13 ▲0.0245.69 ▲2.92
Add New Post /wp-admin/post-new.php5.44 ▲0.0190.05 ▼562.89
Media Library /wp-admin/upload.php3.02 ▲0.0130.66 ▼5.84

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by File Select Control For Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,725 ▲12916.14 ▲0.568.30 ▼1.5453.11 ▲7.01
Dashboard /wp-admin2,992 ▲585.90 ▼0.03134.45 ▼6.80114.20 ▲0.80
Posts /wp-admin/edit.php2,759 ▲232.71 ▲0.0168.93 ▲6.2992.79 ▲3.72
Add New Post /wp-admin/post-new.php1,512 ▼36418.48 ▼0.69351.92 ▼20.59105.24 ▼10.60
Media Library /wp-admin/upload.php1,833 ▲234.99 ▼0.06157.38 ▲3.53117.23 ▼0.79

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/file-select-control-for-elementor/widgets/file-link-widget.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Base_Data_Control' not found in wp-content/plugins/file-select-control-for-elementor/controls/fileselect-control.php:9

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention: Please take inspiration from this readme.txt

file-select-control-for-elementor/file-select-control-elementor.php 92% from 13 tests

Analyzing the main PHP file in "File Select Control For Elementor" version 1.3
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 ("file-select-control-for-elementor.php" instead of "file-select-control-elementor.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
Success! There were no dangerous files found in this plugin264 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP366251226
JavaScript16029
Markdown1409

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity3.33
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.37
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods19
▷ Static methods15.26%
▷ Public methods1684.21%
▷ Protected methods315.79%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin