84% rewatch-oembed-wp

Code Review | Rewatch oEmbed WP

WordPress plugin Rewatch oEmbed WP scored84%from 54 tests.

About plugin

  • Plugin page: rewatch-oembed-wp
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0
  • WordPress version: 6.3.1
  • First release: May 27, 2022
  • Latest release: May 27, 2022
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: rewatchinc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /898 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Rewatch oEmbed WP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.81 ▼0.84
Dashboard /wp-admin3.31 ▲0.0152.31 ▼2.42
Posts /wp-admin/edit.php3.36 ▲0.0146.83 ▼3.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.99 ▼14.20
Media Library /wp-admin/upload.php3.24 ▲0.0134.27 ▼2.87

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

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

Browser metrics Passed 4 tests

Rewatch oEmbed WP: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.34 ▼0.011.77 ▼0.2745.77 ▲2.26
Dashboard /wp-admin2,198 ▲185.56 ▼0.0587.91 ▼1.6338.72 ▼1.30
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0234.06 ▼13.7437.53 ▼1.17
Add New Post /wp-admin/post-new.php1,526 ▼221.03 ▼2.24657.30 ▼18.8157.83 ▼6.66
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.05103.07 ▼1.7046.21 ▲4.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rewatch-oembed-wp/rewatch.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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: oembed, video, rewatch

rewatch-oembed-wp/rewatch.php 92% from 13 tests

The primary PHP file in "Rewatch oEmbed WP" version 1.0.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 ("rewatch-oembed-wp.php" instead of "rewatch.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
Success! There were no dangerous files found in this plugin5 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16235

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.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected