84% smallcase-oembed-provider

Code Review | smallcase oEmbed Provider

WordPress plugin smallcase oEmbed Provider scored84%from 54 tests.

About plugin

  • Plugin page: smallcase-oembed-...
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-5.6
  • WordPress version: 6.3.1
  • First release: Mar 12, 2021
  • Latest release: Mar 12, 2021
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: smallcase (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /330 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by smallcase oEmbed Provider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.04 ▼3.86
Dashboard /wp-admin3.31 ▼0.0344.42 ▼16.47
Posts /wp-admin/edit.php3.36 ▲0.0143.85 ▼8.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.33 ▼20.08
Media Library /wp-admin/upload.php3.23 ▲0.0134.60 ▲2.07

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for smallcase oEmbed Provider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.28 ▼1.101.78 ▼0.0342.64 ▲0.18
Dashboard /wp-admin2,206 ▲215.93 ▲1.0098.01 ▼4.2943.60 ▼1.54
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0837.53 ▼1.5833.33 ▲1.49
Add New Post /wp-admin/post-new.php1,533 ▼023.14 ▲0.42665.81 ▲77.8970.10 ▲17.15
Media Library /wp-admin/upload.php1,382 ▼94.18 ▼0.0694.71 ▼3.4542.37 ▼0.45

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smallcase-oembed-provider/smallcase-oembed-provider.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% 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
These attributes need to be fixed: The official readme.txt might help

smallcase-oembed-provider/smallcase-oembed-provider.php Passed 13 tests

The entry point to "smallcase oEmbed Provider" version 1.1 is a PHP file that has certain tags in its header comment area
121 characters long description:
The plugin extends Wordpress's automatic embed feature, allowing you to directly embed smallcase cards from the embed URL

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 plugin5 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12115

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for 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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected