84% video-bottom-tab-qr-embed-share

Code Review | video bottom tab Qrcode-embed and share buttons

WordPress plugin video bottom tab Qrcode-embed and share buttons scored84%from 54 tests.

About plugin

  • Plugin page: video-bottom-tab-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.3
  • WordPress version: 6.3.1
  • First release: Nov 6, 2019
  • Latest release: Nov 6, 2019
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: behzadrohizadeh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /434 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.48ms] Passed 4 tests

This is a short check of server-side resources used by video bottom tab Qrcode-embed and share buttons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.11 ▼3.63
Dashboard /wp-admin3.31 ▲0.0145.60 ▼1.17
Posts /wp-admin/edit.php3.36 ▲0.0048.93 ▲1.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.64 ▼1.31
Media Library /wp-admin/upload.php3.23 ▲0.0033.70 ▲0.20

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

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

Browser metrics Passed 4 tests

A check of browser resources used by video bottom tab Qrcode-embed and share buttons
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲15713.70 ▼0.696.09 ▲4.2441.46 ▼3.18
Dashboard /wp-admin2,209 ▲184.86 ▼0.01112.57 ▲2.4136.18 ▼2.64
Posts /wp-admin/edit.php2,089 ▼32.03 ▼0.0239.52 ▲0.0339.65 ▲2.82
Add New Post /wp-admin/post-new.php1,533 ▲1423.15 ▲0.13651.89 ▼32.9053.68 ▼7.07
Media Library /wp-admin/upload.php1,391 ▲34.30 ▲0.09100.80 ▼3.8242.76 ▼2.36

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

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
Even though everything seems fine, this is not 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-bottom-tab-qr-embed-share/wpvbtab.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: embed, share, video, bottom, tab...

video-bottom-tab-qr-embed-share/wpvbtab.php 92% from 13 tests

Analyzing the main PHP file in "video bottom tab Qrcode-embed and share buttons" version 1.0.0
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("video-bottom-tab-qr-embed-share.php" instead of "wpvbtab.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin525 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS1432381
JavaScript1681134
PHP26910

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
14 PNG files occupy 0.31MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png4.55KB2.32KB▼ 49.07%
images/share.png0.94KB0.63KB▼ 32.50%
screenshot-5.png95.00KB39.00KB▼ 58.94%
screenshot-4.png39.47KB15.80KB▼ 59.97%
images/telegram.png1.51KB1.16KB▼ 23.47%