94% wp-dideo

Code Review | Dideo

WordPress plugin Dideo scored 94% from 54 tests.

About plugin

  • Plugin page: wp-dideo
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.8
  • WordPress version: 5.8.1
  • First release: Dec 3, 2018
  • Latest release: Dec 3, 2018
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: mshomali (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 362 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Dideo
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1241.45 ▲20.05
Dashboard /wp-admin3.07 ▲0.0143.54 ▼3.74
Posts /wp-admin/edit.php3.12 ▲0.0143.06 ▼1.85
Add New Post /wp-admin/post-new.php5.42 ▼0.0191.91 ▼555.81
Media Library /wp-admin/upload.php3.01 ▲0.0131.05 ▼4.03

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Dideo
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.95 ▲0.389.98 ▼0.8250.32 ▲0.26
Dashboard /wp-admin2,970 ▲396.15 ▲0.02156.52 ▲16.61110.88 ▼7.80
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0164.98 ▲1.8393.64 ▲3.86
Add New Post /wp-admin/post-new.php1,687 ▲18718.84 ▲0.05372.52 ▼15.32108.66 ▼1.69
Media Library /wp-admin/upload.php1,810 ▼35.02 ▼0.00143.63 ▼5.54120.66 ▲3.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-dideo/dideo.php:19

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: dideo, video, clip

wp-dideo/dideo.php 92% from 13 tests

The primary PHP file in "Dideo" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-dideo.php" instead of "dideo.php")

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
There were no executable files found in this plugin50 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript15126
PHP241320
Markdown1404

PHP code Passed 2 tests

An overview 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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
tinyMCE/dideo.png80.37KB32.14KB▼ 60.01%