84% wphobby-addons-for-elementor

Code Review | WPHobby Addons for Elementor

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

About plugin

  • Plugin page: wphobby-addons-fo...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: Nov 26, 2019
  • Latest release: Apr 8, 2021
  • Number of updates: 20
  • Update frequency: every 25.0 days
  • Top authors: darell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /943 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.02MB] [CPU: ▼3.34ms] Passed 4 tests

Analyzing server-side resources used by WPHobby Addons for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.23 ▼5.29
Dashboard /wp-admin3.32 ▲0.0244.19 ▼4.17
Posts /wp-admin/edit.php3.37 ▲0.0248.90 ▲4.02
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.93 ▼3.46
Media Library /wp-admin/upload.php3.24 ▲0.0234.35 ▼0.44

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WPHobby Addons for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7413.26 ▼1.141.59 ▼0.2751.47 ▲4.67
Dashboard /wp-admin2,212 ▲215.79 ▲0.91100.11 ▼8.6238.48 ▼4.50
Posts /wp-admin/edit.php2,097 ▲82.01 ▼0.0340.56 ▲4.3437.98 ▲1.08
Add New Post /wp-admin/post-new.php1,523 ▼1417.60 ▼5.60664.77 ▼74.8962.75 ▲4.07
Media Library /wp-admin/upload.php1,397 ▲124.23 ▼0.0295.57 ▼4.1139.72 ▼5.97

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 fix the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wphobby-addons-for-elementor/includes/admin/sections/general/tab-general.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wphobby-addons-for-elementor/includes/admin/sections/general/top.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wphobby-addons-for-elementor/includes/whae_admin.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wphobby-addons-for-elementor/includes/admin/sections/general/tab-elements.php:8

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

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 need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

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

The main file in "WPHobby Addons for Elementor" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
72 characters long description:
Ultimate addons package for Elementor page builder plugin for WordPress.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin11,850 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP177422575,980
CSS112,000645,458
JavaScript44322234
SVG213178

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
  • Method cyclomatic complexity should be reduced to less than 100 (currently 103)
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity18.42
▷ Minimum class complexity1.00
▷ Maximum class complexity103.00
Average method complexity3.55
▷ Minimum method complexity1.00
▷ Maximum method complexity103.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods82
▷ Static methods22.44%
▷ Public methods6174.39%
▷ Protected methods2125.61%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/mail.png16.25KB13.04KB▼ 19.74%
assets/images/file.png5.09KB3.92KB▼ 22.99%
assets/images/default-logo.png17.10KB2.94KB▼ 82.80%
assets/images/play-button.png13.39KB10.70KB▼ 20.12%
includes/admin/images/icon.png19.99KB0.88KB▼ 95.61%