83% safan-addons

Code Review | Safan Elementor Addons

WordPress plugin Safan Elementor Addons scored83%from 54 tests.

About plugin

  • Plugin page: safan-addons
  • Plugin version: 3.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Oct 19, 2019
  • Latest release: May 18, 2021
  • Number of updates: 16
  • Update frequency: every 36.1 days
  • Top authors: largbasket (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,066 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Safan Elementor Addons
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.31 ▲1.34
Dashboard /wp-admin3.31 ▼0.0443.79 ▼13.24
Posts /wp-admin/edit.php3.36 ▲0.0044.62 ▼4.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.14 ▼14.29
Media Library /wp-admin/upload.php3.23 ▲0.0032.60 ▼4.05

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Safan Elementor Addons
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.29 ▲0.101.69 ▲0.0738.07 ▼1.25
Dashboard /wp-admin2,215 ▲405.64 ▼0.0483.68 ▼13.0339.80 ▼3.66
Posts /wp-admin/edit.php2,117 ▲172.00 ▼0.0236.49 ▼1.5534.77 ▼0.78
Add New Post /wp-admin/post-new.php1,541 ▲1523.31 ▲0.24646.08 ▼20.9654.11 ▼4.70
Media Library /wp-admin/upload.php1,411 ▲114.18 ▼0.0494.83 ▼24.1240.82 ▼9.36

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/safan-addons/widgets/service.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/safan-addons/widgets/content-block/content-seven.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/safan-addons/widgets/content-block/content-two.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/safan-addons/widgets/timer-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/safan-addons/widgets/content-block/content-four.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/safan-addons/widgets/skill.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/safan-addons/widgets/content-block/content-five.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/safan-addons/widgets/contact.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/safan-addons/widgets/content-block/content-three.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/safan-addons/widgets/content-block/content-one.php:4

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 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
5 plugin tags: elementor content widget, elementor extention, elementor widget, elementor, elementor content block

safan-addons/elementor-addons.php 77% from 13 tests

"Safan Elementor Addons" version 3.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("safan-addons.php" instead of "elementor-addons.php")
  • Domain Path: The domain path folder was not found ("/languages")

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
There were no executable files found in this plugin25,075 lines of code in 130 files:
LanguageFilesBlank linesComment linesLines of code
CSS122,1908911,638
SVG7863910,045
PHP156222502,261
Sass141529810
JavaScript116335321

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity3.21
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.31
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes17.14%
Methods101
▷ Static methods10.99%
▷ Public methods7574.26%
▷ Protected methods2625.74%
▷ 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
1 PNG file occupies 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
widgets/img/logo.png32.51KB17.87KB▼ 45.02%