84% webigraph-addons-for-elementor

Code Review | Webigraph Addons for Elementor

WordPress plugin Webigraph Addons for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: webigraph-addons-...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 6.3.1
  • First release: Jun 30, 2020
  • Latest release: Jul 8, 2020
  • Number of updates: 3
  • Update frequency: every 3.0 days
  • Top authors: webigraph (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /568 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.07ms] Passed 4 tests

This is a short check of server-side resources used by Webigraph Addons for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.49 ▲0.27
Dashboard /wp-admin3.31 ▲0.0144.99 ▼6.55
Posts /wp-admin/edit.php3.36 ▲0.0149.11 ▲3.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.54 ▼8.16
Media Library /wp-admin/upload.php3.24 ▲0.0136.48 ▲2.17

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Webigraph Addons for Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.28 ▼1.101.76 ▼0.1242.71 ▲2.28
Dashboard /wp-admin2,218 ▲335.86 ▼0.04111.82 ▲3.4939.81 ▼5.85
Posts /wp-admin/edit.php2,100 ▲112.01 ▲0.0141.45 ▲3.9239.75 ▲4.96
Add New Post /wp-admin/post-new.php1,549 ▲3523.48 ▲5.89669.00 ▲46.4753.51 ▲6.23
Media Library /wp-admin/upload.php1,403 ▲154.32 ▲0.1298.42 ▲0.8940.74 ▼2.01

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 4× 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/webigraph-addons-for-elementor/widgets/webigraph-button-group.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/webigraph-addons-for-elementor/widgets/webigraph-multi-heading.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/webigraph-addons-for-elementor/widgets/webigraph-easy-text-editor.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/webigraph-addons-for-elementor/widgets/webigraph-modal-box.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: There are too many tags (15 tag instead of maximum 10)
The official readme.txt is a good inspiration

webigraph-addons-for-elementor/webigraph-addons-for-elementor.php Passed 13 tests

The main PHP file in "Webigraph Addons for Elementor" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
Webigraph Addons Plugin Includes effective widgets for Elementor Page Builder.

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 plugin3,548 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP6633923,242
CSS2226252
JavaScript32553
SVG1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity10.00
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods38
▷ Static methods12.63%
▷ Public methods2257.89%
▷ Protected methods1231.58%
▷ Private methods410.53%
Functions8
▷ Named functions675.00%
▷ Anonymous functions225.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin