84% selleradise-widgets

Code Review | Selleradise Widgets

WordPress plugin Selleradise Widgets scored84%from 54 tests.

About plugin

  • Plugin page: selleradise-widgets
  • Plugin version: 2.1.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0
  • WordPress version: 6.3.1
  • First release: Dec 22, 2021
  • Latest release: Sep 21, 2022
  • Number of updates: 12
  • Update frequency: every 22.8 days
  • Top authors: zarhasan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /2,324 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼2.60ms] Passed 4 tests

Server-side resources used by Selleradise Widgets
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1637.45 ▲0.15
Dashboard /wp-admin3.48 ▲0.1745.98 ▲0.47
Posts /wp-admin/edit.php3.53 ▲0.1749.04 ▼4.37
Add New Post /wp-admin/post-new.php6.10 ▲0.2284.71 ▼6.63
Media Library /wp-admin/upload.php3.34 ▲0.1135.77 ▲4.74
FAQ Categories /wp-admin/edit-tags.php?taxonomy=faq_category&post_type=faq3.3335.01
All Testimonial /wp-admin/edit.php?post_type=testimonial3.3835.94
All FAQ /wp-admin/edit.php?post_type=faq3.3833.55
Add New Testimonial /wp-admin/post-new.php?post_type=testimonial3.3740.20
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins3.4039.12
Add New FAQ /wp-admin/post-new.php?post_type=faq6.0980.60

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3,851 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Selleradise Widgets
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲15313.44 ▼1.151.66 ▼0.0439.55 ▼2.86
Dashboard /wp-admin2,299 ▲1085.85 ▼0.05100.73 ▲0.0242.17 ▲5.89
Posts /wp-admin/edit.php2,190 ▲982.06 ▲0.0540.57 ▲4.3040.16 ▲6.84
Add New Post /wp-admin/post-new.php1,608 ▲8022.98 ▼0.20662.12 ▲22.9850.39 ▲0.69
Media Library /wp-admin/upload.php1,492 ▲1074.26 ▲0.0797.56 ▼8.8645.23 ▼1.16
FAQ Categories /wp-admin/edit-tags.php?taxonomy=faq_category&post_type=faq1,3632.3329.8132.80
All Testimonial /wp-admin/edit.php?post_type=testimonial1,1541.9837.0243.69
All FAQ /wp-admin/edit.php?post_type=faq1,1511.9833.3235.33
Add New Testimonial /wp-admin/post-new.php?post_type=testimonial1,4912.5049.0757.04
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins1,0452.0925.3629.50
Add New FAQ /wp-admin/post-new.php?post_type=faq6,22622.13840.7826.98

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 17× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/selleradise-widgets/inc/Widgets/Elementor/Hero.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/selleradise-widgets/inc/Widgets/Elementor/Features.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Group_Control_Base' not found in wp-content/plugins/selleradise-widgets/inc/Controls/Elementor/Group_Control_Link.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/selleradise-widgets/inc/Widgets/Elementor/PromoCards.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/selleradise-widgets/inc/Widgets/Elementor/FAQ.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/selleradise-widgets/inc/class-tgm-plugin-activation.php:2169
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/selleradise-widgets/inc/Widgets/Elementor/CTA.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/selleradise-widgets/inc/Widgets/Elementor/Posts.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/selleradise-widgets/inc/class-tgm-plugin-activation.php:2169
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/selleradise-widgets/inc/Widgets/Elementor/Tabs.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

selleradise-widgets/selleradise-widgets.php 92% from 13 tests

The main PHP file in "Selleradise Widgets" ver. 2.1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 158 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin53,419 lines of code in 3,836 files:
LanguageFilesBlank linesComment linesLines of code
JSON40026,951
SVG3,6894,569117,208
PHP1091,8972,8658,273
JavaScript3014110943
CSS46544

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity15.56
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes32
▷ Abstract classes00.00%
▷ Concrete classes32100.00%
▷ Final classes13.12%
Methods248
▷ Static methods208.06%
▷ Public methods19177.02%
▷ Protected methods5321.37%
▷ Private methods41.61%
Functions16
▷ Named functions1593.75%
▷ Anonymous functions16.25%
Constants6
▷ Global constants350.00%
▷ Class constants350.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.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/dist/images/placeholder.png18.53KB5.23KB▼ 71.79%