84% omny-studio

Code Review | omny.fm Embeds

WordPress plugin omny.fm Embeds scored 84% from 54 tests.

About plugin

  • Plugin page: omny-studio
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.0-5.4
  • WordPress version: 6.3.1
  • First release: Apr 10, 2017
  • Latest release: Apr 14, 2020
  • Number of updates: 6
  • Update frequency: every 183.3 days
  • Top authors: omnystudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,451 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: ▼3.53ms] Passed 4 tests

An overview of server-side resources used by omny.fm Embeds
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0139.59 ▼1.38
Dashboard /wp-admin3.31 ▲0.0146.52 ▼5.02
Posts /wp-admin/edit.php3.36 ▲0.0047.72 ▼1.96
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.78 ▼5.75
Media Library /wp-admin/upload.php3.23 ▲0.0037.78 ▲2.60

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for omny.fm Embeds
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.19 ▼1.401.68 ▼0.0444.33 ▲3.22
Dashboard /wp-admin2,206 ▲184.87 ▼1.02109.35 ▼3.5941.78 ▲2.33
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0139.71 ▼1.2635.82 ▲0.63
Add New Post /wp-admin/post-new.php1,519 ▼023.16 ▼0.21685.42 ▼22.5954.40 ▼0.42
Media Library /wp-admin/upload.php1,382 ▼64.19 ▼0.0197.75 ▼6.9344.14 ▲0.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_oembed_add_provider() in wp-content/plugins/omny-studio/omny-studio-plugin.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Contributors: The plugin contributors field is not present
Please take inspiration from this readme.txt

omny-studio/omny-studio-plugin.php 92% from 13 tests

The main file in "omny.fm Embeds" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("omny-studio.php" instead of "omny-studio-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin12 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown14010
PHP1192

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin