83% oembed-my-mitsu-estimation-form

Code Review | Oembed for My Mitsu Estimation Form

WordPress plugin Oembed for My Mitsu Estimation Form scored 83% from 54 tests.

About plugin

  • Plugin page: oembed-my-mitsu-e...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Apr 14, 2017
  • Latest release: Jul 5, 2017
  • Number of updates: 5
  • Update frequency: every 26.2 days
  • Top authors: ounziw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 770 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.56ms] Passed 4 tests

A check of server-side resources used by Oembed for My Mitsu Estimation Form
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0242.50 ▼1.22
Dashboard /wp-admin3.32 ▲0.0246.04 ▼1.76
Posts /wp-admin/edit.php3.37 ▲0.0246.52 ▼0.62
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.09 ▼6.62
Media Library /wp-admin/upload.php3.24 ▲0.0236.25 ▲2.31

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Oembed for My Mitsu Estimation Form
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲10213.26 ▼1.394.40 ▲2.5841.46 ▲0.57
Dashboard /wp-admin2,221 ▲665.90 ▲0.21104.32 ▲4.7338.34 ▼1.26
Posts /wp-admin/edit.php2,101 ▲121.99 ▼0.0741.55 ▲0.4037.72 ▲5.22
Add New Post /wp-admin/post-new.php1,524 ▼1817.80 ▼0.52573.35 ▼34.7654.96 ▲4.19
Media Library /wp-admin/upload.php1,397 ▲64.22 ▼0.0195.30 ▼5.3041.65 ▼4.31

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
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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/oembed-my-mitsu-estimation-form/oembed_for_my_mitsu_estimation_form.php:17

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (This plugin outputs an iframe.) image missing
Please take inspiration from this readme.txt

oembed-my-mitsu-estimation-form/oembed_for_my_mitsu_estimation_form.php 85% from 13 tests

The main file in "Oembed for My Mitsu Estimation Form" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("oembed-my-mitsu-estimation-form.php" instead of "oembed_for_my_mitsu_estimation_form.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin113 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File1173963
PHP161150

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png134.85KB40.11KB▼ 70.26%