84% jupi-tupi-pl-remove-related-videos-in-iframe-youtube

Code Review | Jupi-Tupi.pl - Remove related videos in iframe YouTube

WordPress plugin Jupi-Tupi.pl - Remove related videos in iframe YouTube scored84%from 54 tests.

About plugin

  • Plugin page: jupi-tupi-pl-remo...
  • Plugin version: 3.5
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2
  • WordPress version: 6.3.1
  • First release: Aug 19, 2019
  • Latest release: Aug 25, 2019
  • Number of updates: 46
  • Update frequency: every 0.3 days
  • Top authors: jupitupi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /645 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Jupi-Tupi.pl - Remove related videos in iframe YouTube
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.59 ▲4.27
Dashboard /wp-admin3.31 ▼0.0354.33 ▼5.19
Posts /wp-admin/edit.php3.36 ▲0.0144.62 ▼0.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.33 ▼15.57
Media Library /wp-admin/upload.php3.23 ▲0.0033.37 ▲0.10

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Jupi-Tupi.pl - Remove related videos in iframe YouTube
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.24 ▼0.171.72 ▲0.1145.05 ▲1.68
Dashboard /wp-admin2,198 ▲245.59 ▲0.0195.61 ▲10.8343.50 ▲0.94
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0135.51 ▲1.3635.13 ▲0.74
Add New Post /wp-admin/post-new.php1,526 ▼023.10 ▼0.80678.34 ▼3.8252.58 ▼1.51
Media Library /wp-admin/upload.php1,400 ▼04.25 ▲0.05107.47 ▼4.8146.34 ▼1.42

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/jupi-tupi-pl-remove-related-videos-in-iframe-youtube/jupi-tupi-pl-remove-related-videos-in-iframe-youtube.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

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
5 plugin tags: eoembed, iframe, youtube, embed, no-ads

jupi-tupi-pl-remove-related-videos-in-iframe-youtube/jupi-tupi-pl-remove-related-videos-in-iframe-youtube.php 92% from 13 tests

The main file in "Jupi-Tupi.pl - Remove related videos in iframe YouTube" v. 3.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 710 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin170 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1192370
JavaScript19757
CSS10026
Markdown15017

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods5
▷ Static methods120.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon-256x256.png75.37KB24.38KB▼ 67.65%