83% dental-education-videos

Code Review | Dental Education Videos

WordPress plugin Dental Education Videos scored83%from 54 tests.

About plugin

  • Plugin page: dental-education-...
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 28, 2020
  • Latest release: Aug 22, 2022
  • Number of updates: 13
  • Update frequency: every 62.8 days
  • Top authors: muvidental (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /828 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Dental Education Videos
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.92 ▼4.27
Dashboard /wp-admin3.32 ▲0.0147.28 ▼8.36
Posts /wp-admin/edit.php3.37 ▲0.0149.74 ▼0.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.25 ▼1.67
Media Library /wp-admin/upload.php3.25 ▲0.0139.41 ▲1.54

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Dental Education Videos
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5113.89 ▼0.769.84 ▲8.2142.43 ▲2.09
Dashboard /wp-admin2,214 ▲375.62 ▼0.0688.48 ▼4.7443.29 ▲0.97
Posts /wp-admin/edit.php2,119 ▲192.06 ▲0.0840.14 ▼0.1036.23 ▼13.81
Add New Post /wp-admin/post-new.php6,209 ▲4,66419.14 ▼4.06917.85 ▲237.1462.41 ▼4.99
Media Library /wp-admin/upload.php1,416 ▲164.19 ▲0.03116.68 ▲6.8947.47 ▲2.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/dental-education-videos/admin-page.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dental-education-videos/plugin.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were 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:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

dental-education-videos/plugin.php 85% from 13 tests

The main PHP script in "Dental Education Videos" version 2.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("dental-education-videos.php" instead of "plugin.php")
  • Description: The description should be shorter than 140 characters (currently 270 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 plugin325 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript34986163
PHP23417153
CSS1219

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions6
▷ Named functions6100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.57MB with 0.18MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png573.28KB211.41KB▼ 63.12%
assets/muvi-logo.png5.72KB6.21KB0.00%