10% dental-optimizer-patient-generator-app

Code Review | Dental Optimizer Patient Generator App

WordPress plugin Dental Optimizer Patient Generator App scored10%from 54 tests.

About plugin

  • Plugin page: dental-optimizer-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.0
  • WordPress version: 6.3.1
  • First release: Jan 16, 2015
  • Latest release: Jan 16, 2015
  • Number of updates: 5
  • Update frequency: every 14.0 days
  • Top authors: Healthygrid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,044 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/dental-optimizer-patient-generator-app/dental-patient-generator-app.php+254
    Methods with the same name as their class will not be constructors in a future version of PHP; dental_widget_code_widget has a deprecated constructor

Server metrics [RAM: ▼1.86MB] [CPU: ▼61.63ms] Passed 4 tests

This is a short check of server-side resources used by Dental Optimizer Patient Generator App
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.324.66 ▼37.46
Dashboard /wp-admin2.16 ▼1.1810.97 ▼55.30
Posts /wp-admin/edit.php2.16 ▼1.196.46 ▼48.66
Add New Post /wp-admin/post-new.php2.16 ▼3.728.26 ▼105.09
Media Library /wp-admin/upload.php2.16 ▼1.076.34 ▼30.39

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Dental Optimizer Patient Generator App
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.25 ▼1.171.77 ▼0.1041.51 ▼3.26
Dashboard /wp-admin2,234 ▲374.90 ▲0.06106.89 ▲0.8681.81 ▲37.86
Posts /wp-admin/edit.php2,131 ▲282.04 ▼0.0139.51 ▼2.4034.73 ▼4.14
Add New Post /wp-admin/post-new.php1,702 ▲16822.58 ▼0.92747.18 ▲94.7148.93 ▼22.20
Media Library /wp-admin/upload.php1,416 ▲164.26 ▲0.05100.08 ▼3.4280.08 ▲33.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/dental-optimizer-patient-generator-app/dental-patient-generator-app.php+254
    Methods with the same name as their class will not be constructors in a future version of PHP; dental_widget_code_widget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • ps_dwc
    • widget_dentalcodewi
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/dental-optimizer-patient-generator-app/step2.php
    • > /wp-content/plugins/dental-optimizer-patient-generator-app/step1.php
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: siteurlremote in wp-content/plugins/dental-optimizer-patient-generator-app/step2.php on line 21
    • > PHP Notice
      Undefined variable: ps_dwc_plugin_url in wp-content/plugins/dental-optimizer-patient-generator-app/step1.php on line 65
    • > PHP Notice
      Undefined variable: siteurlremote in wp-content/plugins/dental-optimizer-patient-generator-app/step2.php on line 60
    • > PHP Notice
      Undefined variable: ps_dwc_plugin_page_url in wp-content/plugins/dental-optimizer-patient-generator-app/step2.php on line 40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/dental-optimizer-patient-generator-app/dental-patient-generator-app.php:23
    • > PHP Notice
      Undefined variable: ps_widgetid in wp-content/plugins/dental-optimizer-patient-generator-app/step2.php on line 21
    • > PHP Notice
      Undefined variable: ps_widgetid in wp-content/plugins/dental-optimizer-patient-generator-app/step2.php on line 60
    • > PHP Notice
      Undefined variable: ps_dwc_plugin_url in wp-content/plugins/dental-optimizer-patient-generator-app/step1.php on line 96
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/dental-optimizer-patient-generator-app/authentication.php:10

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Login/Registration page, It facilitates login/registration into [DentalOptimizer](http://www.dentaloptimizer.com "DentalOptimizer").), #2 (Select modules to display in widget here.), #3 (Grab the code to display widget in sidebar or in post.)
You can look at the official readme.txt

dental-optimizer-patient-generator-app/dental-patient-generator-app.php 85% from 13 tests

"Dental Optimizer Patient Generator App" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dental-optimizer-patient-generator-app.php" instead of "dental-patient-generator-app.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 192 characters long)

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
Everything looks great! No dangerous files found in this plugin1,665 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS15318944
PHP42313525
JavaScript1418196

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) images/icon.png1.12KB0.00KB▼ 100.00%
images/sprite.png69.85KB5.20KB▼ 92.55%