84% jotform-oembed

Code Review | Jotform oEmbed

WordPress plugin Jotform oEmbed scored84%from 54 tests.

About plugin

  • Plugin page: jotform-oembed
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.0
  • WordPress version: 6.3.1
  • First release: Oct 20, 2014
  • Latest release: Jun 2, 2022
  • Number of updates: 19
  • Update frequency: every 147.4 days
  • Top authors: jotform (63.16%)eeertekin (31.58%)paul_simpson (15.79%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10,000+ active /61,868 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 gracefully, with no errors

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

An overview of server-side resources used by Jotform oEmbed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.27 ▲0.44
Dashboard /wp-admin3.31 ▼0.0450.00 ▼14.76
Posts /wp-admin/edit.php3.36 ▲0.0050.03 ▲3.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.53 ▲0.69
Media Library /wp-admin/upload.php3.23 ▲0.0035.71 ▼3.58

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Jotform oEmbed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.59 ▲0.272.01 ▲0.3944.46 ▲0.55
Dashboard /wp-admin2,198 ▲185.62 ▲0.0695.78 ▲0.4646.64 ▲5.58
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0134.90 ▼2.0032.81 ▲0.73
Add New Post /wp-admin/post-new.php1,531 ▼2323.23 ▲5.01651.09 ▲14.9558.57 ▲1.84
Media Library /wp-admin/upload.php1,397 ▼34.25 ▼0.00107.08 ▼0.3347.24 ▲5.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_oembed_add_provider() in wp-content/plugins/jotform-oembed/jotform-oembed.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid url: "N/A"
Please take inspiration from this readme.txt

jotform-oembed/jotform-oembed.php 92% from 13 tests

The primary PHP file in "Jotform oEmbed" version 1.3.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 194 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1598

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG files were detected