84% optio-dentistry

Code Review | Optio Dentistry

WordPress plugin Optio Dentistry scored84%from 54 tests.

About plugin

  • Plugin page: optio-dentistry
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 16, 2015
  • Latest release: May 16, 2022
  • Number of updates: 18
  • Update frequency: every 138.7 days
  • Top authors: optio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /2,059 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
Install script ran successfully

Server metrics [RAM: ▼0.26MB] [CPU: ▼14.09ms] Passed 4 tests

This is a short check of server-side resources used by Optio Dentistry
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0242.58 ▼0.75
Dashboard /wp-admin3.31 ▲0.0149.36 ▼3.14
Posts /wp-admin/edit.php3.36 ▲0.0147.96 ▼5.46
Add New Post /wp-admin/post-new.php4.81 ▼1.0856.15 ▼47.01
Media Library /wp-admin/upload.php3.24 ▲0.0139.84 ▼0.62

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Optio Dentistry
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9114.42 ▲0.062.32 ▲0.1544.53 ▼0.37
Dashboard /wp-admin2,210 ▲224.87 ▼1.01105.53 ▼12.9641.25 ▼1.08
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0137.40 ▲0.0637.70 ▲1.10
Add New Post /wp-admin/post-new.php6,403 ▲4,88929.47 ▲11.96966.98 ▲275.0566.86 ▲9.50
Media Library /wp-admin/upload.php1,392 ▲74.23 ▼0.0498.38 ▼8.1346.79 ▼4.81

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/optio-dentistry/optio-dentistry.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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: You can take inspiration from this readme.txt

optio-dentistry/optio-dentistry.php Passed 13 tests

The entry point to "Optio Dentistry" version 2.1 is a PHP file that has certain tags in its header comment area
58 characters long description:
Add Optio Dentistry patient education videos to your site.

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
Everything looks great! No dangerous files found in this plugin221 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13543131
CSS19189
JavaScript1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin