84% medical-addon-for-elementor

Code Review | Medical Addon for Elementor

WordPress plugin Medical Addon for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: medical-addon-for...
  • Plugin version: 1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jan 7, 2020
  • Latest release: Aug 1, 2022
  • Number of updates: 12
  • Update frequency: every 78.2 days
  • Top authors: nicheaddons (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /14,244 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Medical Addon for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.13 ▲3.26
Dashboard /wp-admin3.31 ▼0.0343.37 ▼15.26
Posts /wp-admin/edit.php3.36 ▲0.0046.40 ▲3.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.85 ▼15.82
Media Library /wp-admin/upload.php3.23 ▲0.0032.24 ▼1.11

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Medical Addon for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,987 ▲24113.98 ▼0.3720.72 ▲19.2146.27 ▲5.52
Dashboard /wp-admin2,209 ▲285.56 ▼0.1680.79 ▼19.4338.00 ▼0.73
Posts /wp-admin/edit.php2,117 ▲201.99 ▼0.0434.27 ▲0.7135.22 ▼0.59
Add New Post /wp-admin/post-new.php1,538 ▲1023.51 ▲0.26656.54 ▼31.3957.60 ▼3.68
Media Library /wp-admin/upload.php1,417 ▲204.20 ▲0.0293.53 ▼9.1141.23 ▼2.61

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

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
Almost there! Just fix the following items
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\is_plugin_active() in wp-content/plugins/medical-addon-for-elementor/elementor/widgets/medical/namedical-ea-full-calendar.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\is_plugin_active() in wp-content/plugins/medical-addon-for-elementor/elementor/widgets/basic/nabasic-history.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/medical-addon-for-elementor/medical-addon-for-elementor.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\is_plugin_active() in wp-content/plugins/medical-addon-for-elementor/elementor/widgets/basic/nabasic-chart.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\is_plugin_active() in wp-content/plugins/medical-addon-for-elementor/elementor/widgets/medical/namedical-ea-appointments.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\is_plugin_active() in wp-content/plugins/medical-addon-for-elementor/elementor/widgets/medical/namedical-bookly-appointment.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\is_plugin_active() in wp-content/plugins/medical-addon-for-elementor/elementor/widgets/basic/nabasic-gallery.php:9

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can look at the official readme.txt

medical-addon-for-elementor/medical-addon-for-elementor.php 92% from 13 tests

The primary PHP file in "Medical Addon for Elementor" version 1.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 416 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin62,285 lines of code in 95 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript255,7155,83523,966
PHP401,0961,17821,621
CSS181,44717414,857
SVG10801,839
JSON2002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity32.74
▷ Minimum class complexity1.00
▷ Maximum class complexity80.00
Average method complexity6.31
▷ Minimum method complexity1.00
▷ Maximum method complexity80.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes38
▷ Abstract classes00.00%
▷ Concrete classes38100.00%
▷ Final classes00.00%
Methods228
▷ Static methods83.51%
▷ Public methods15869.30%
▷ Protected methods7030.70%
▷ Private methods00.00%
Functions15
▷ Named functions1386.67%
▷ Anonymous functions213.33%
Constants12
▷ Global constants1083.33%
▷ Class constants216.67%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/chrome.png12.53KB5.29KB▼ 57.79%
assets/images/google.png11.04KB4.54KB▼ 58.87%
assets/images/apple.png8.69KB4.99KB▼ 42.53%