78% multidomain-support-for-elementor

Code Review | Multidomain support for Elementor

WordPress plugin Multidomain support for Elementor scored78%from 54 tests.

About plugin

  • Plugin page: multidomain-suppo...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.1
  • WordPress version: 6.3.1
  • First release: Apr 25, 2019
  • Latest release: May 25, 2019
  • Number of updates: 4
  • Update frequency: every 7.8 days
  • Top authors: reatlat (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /2,116 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Multidomain support for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.58 ▼8.48
Dashboard /wp-admin3.33 ▲0.0244.45 ▲1.47
Posts /wp-admin/edit.php3.38 ▲0.0241.56 ▼1.43
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.55 ▼9.97
Media Library /wp-admin/upload.php3.25 ▲0.0234.75 ▲0.54
Multidomain Support /wp-admin/admin.php?page=multidomain-support-for-elementor-settings3.3231.98

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Multidomain support for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3514.35 ▼0.001.79 ▼0.0244.75 ▲0.87
Dashboard /wp-admin2,205 ▲285.52 ▼0.1696.13 ▲8.6043.47 ▲3.60
Posts /wp-admin/edit.php2,107 ▲72.00 ▼0.0433.33 ▼6.9035.19 ▲0.95
Add New Post /wp-admin/post-new.php1,544 ▲1723.11 ▲0.11662.64 ▼23.3852.57 ▼21.35
Media Library /wp-admin/upload.php1,410 ▲104.25 ▲0.0795.41 ▼8.5341.71 ▼5.22
Multidomain Support /wp-admin/admin.php?page=multidomain-support-for-elementor-settings1,0542.0123.7934.51

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/multidomain-support-for-elementor/public/partials/public--display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Multidomain_Support_For_Elementor_Admin' not found in wp-content/plugins/multidomain-support-for-elementor/admin/partials/admin--display.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === multidomain-support-for-elementor === )
The official readme.txt is a good inspiration

multidomain-support-for-elementor/multidomain-support-for-elementor.php Passed 13 tests

"Multidomain support for Elementor" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected832 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP12216619558
Sass4473172
JavaScript42155101
CSS2121

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity5.43
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods39
▷ Static methods25.13%
▷ Public methods3076.92%
▷ Protected methods00.00%
▷ Private methods923.08%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/imgs/github-octcat.png3.56KB3.47KB▼ 2.47%
admin/imgs/opensource.png1.37KB1.30KB▼ 4.79%
admin/imgs/banner--global-lang.png19.95KB19.17KB▼ 3.93%
admin/imgs/gplv3.png2.93KB2.88KB▼ 1.70%
admin/imgs/buymeacoffee.png5.13KB5.02KB▼ 2.23%