10% wp-dailymotion-video-fetcher

Code Review | WP Dailymotion Video Fetcher

WordPress plugin WP Dailymotion Video Fetcher scored10%from 54 tests.

About plugin

  • Plugin page: wp-dailymotion-vi...
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4
  • WordPress version: 6.3.1
  • First release: Dec 16, 2015
  • Latest release: Dec 17, 2015
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: wpdigger (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,433 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/wp-dailymotion-video-fetcher/app/widgets/wp_dailymotion.php+5
    Methods with the same name as their class will not be constructors in a future version of PHP; WST_wp_dailymotion_Widget has a deprecated constructor

Server metrics [RAM: ▼1.79MB] [CPU: ▼54.96ms] Passed 4 tests

Server-side resources used by WP Dailymotion Video Fetcher
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.20 ▼1.275.59 ▼34.81
Dashboard /wp-admin2.22 ▼1.096.82 ▼47.02
Posts /wp-admin/edit.php2.22 ▼1.147.67 ▼45.33
Add New Post /wp-admin/post-new.php2.22 ▼3.677.68 ▼92.67
Media Library /wp-admin/upload.php2.22 ▼1.017.82 ▼32.72

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_wst_wp_dailymotion
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP Dailymotion Video Fetcher
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.38 ▲0.021.94 ▼0.0246.18 ▼1.11
Dashboard /wp-admin2,195 ▲185.65 ▼0.0296.41 ▲10.0340.59 ▲0.01
Posts /wp-admin/edit.php2,103 ▲31.99 ▼0.0341.84 ▲3.7635.10 ▲0.95
Add New Post /wp-admin/post-new.php1,526 ▼023.13 ▼0.05649.29 ▲20.7050.09 ▼0.00
Media Library /wp-admin/upload.php1,397 ▼34.28 ▲0.08104.49 ▼1.9046.89 ▼0.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/wp-dailymotion-video-fetcher/app/widgets/wp_dailymotion.php+5
    Methods with the same name as their class will not be constructors in a future version of PHP; WST_wp_dailymotion_Widget has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_wst_wp_dailymotion
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% 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
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-dailymotion-video-fetcher/app/widgets/widgets.php
    • > /wp-content/plugins/wp-dailymotion-video-fetcher/app/widgets/wp_dailymotion.php
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-dailymotion-video-fetcher/app/init.php on line 27
    • > PHP Warning
      require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-dailymotion-video-fetcher/app/init.php on line 28
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-dailymotion-video-fetcher/app/init.php on line 28
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-dailymotion-video-fetcher/app/init.php on line 28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wp-dailymotion-video-fetcher === )
Please take inspiration from this readme.txt

wp-dailymotion-video-fetcher/wp-dailymotion-video-fetcher.php 85% from 13 tests

Analyzing the main PHP file in "WP Dailymotion Video Fetcher" version 1...
Please take the time to fix the following:
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1...")
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected855 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP55018324
JavaScript326276
CSS2226255

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity12.00
▷ Minimum class complexity3.00
▷ Maximum class complexity25.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods11
▷ Static methods763.64%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
app/assets/css/icon.png1.01KB0.26KB▼ 73.91%
app/assets/css/fs-sprite.png1.07KB0.18KB▼ 82.82%