83% wpshare247-elementor-addons

Code Review | WPSHARE247 Elementor Addons

WordPress plugin WPSHARE247 Elementor Addons scored83%from 54 tests.

About plugin

  • Plugin page: wpshare247-elemen...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 20, 2023
  • Latest release: Jan 29, 2023
  • Number of updates: 5
  • Update frequency: every 1.8 days
  • Top authors: website366 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /210 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.08MB] [CPU: ▼6.07ms] Passed 4 tests

This is a short check of server-side resources used by WPSHARE247 Elementor Addons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0837.92 ▼4.41
Dashboard /wp-admin3.38 ▲0.0745.33 ▼6.61
Posts /wp-admin/edit.php3.50 ▲0.1451.75 ▲4.77
Add New Post /wp-admin/post-new.php5.96 ▲0.0793.34 ▼13.19
Media Library /wp-admin/upload.php3.30 ▲0.0734.64 ▼0.07

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPSHARE247 Elementor Addons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.47 ▼0.171.74 ▲0.0542.11 ▲0.67
Dashboard /wp-admin2,224 ▲365.04 ▲0.18100.96 ▼11.6740.25 ▲0.40
Posts /wp-admin/edit.php2,109 ▲202.05 ▲0.0142.28 ▲5.6537.50 ▲3.80
Add New Post /wp-admin/post-new.php1,532 ▲423.14 ▲0.10598.78 ▼81.2944.50 ▼22.31
Media Library /wp-admin/upload.php1,409 ▲244.23 ▲0.0596.02 ▼12.0045.93 ▼0.80

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 5× 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/wpshare247-elementor-addons/includes/widgets/wpshare247_countdown.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wpshare247-elementor-addons/includes/widgets/wpshare247_contact_form7.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wpshare247-elementor-addons/includes/widgets/wpshare247_products_widget.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wpshare247-elementor-addons/includes/widgets/wpshare247_posts_widget.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wpshare247-elementor-addons/includes/widgets/wpshare247_product_categories_widget.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 88% 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 need to be fixed:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
  • Plugin Name: You should set the name of your plugin on the first line ( === wpshare247-elementor-addons === )
The official readme.txt is a good inspiration

wpshare247-elementor-addons/wpshare247-elementor-addon.php 69% from 13 tests

"WPSHARE247 Elementor Addons" version 1.0.1'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:
  • Description: The description should be shorter than 140 characters (currently 212 characters long)
  • Domain Path: The domain path folder was not found ("/languages/")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpshare247-elementor-addons.php" instead of "wpshare247-elementor-addon.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected4,316 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP96161823,943
JavaScript3154227
CSS22414146

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity16.50
▷ Minimum class complexity5.00
▷ Maximum class complexity30.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods117
▷ Static methods1815.38%
▷ Public methods6051.28%
▷ Protected methods5748.72%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin