84% tickertape-oembed-provider

Code Review | Tickertape oEmbed Provider

WordPress plugin Tickertape oEmbed Provider scored84%from 54 tests.

About plugin

  • Plugin page: tickertape-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 10, 2021
  • Latest release: Mar 10, 2021
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: tickertape (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /398 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Tickertape oEmbed Provider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.39 ▼4.02
Dashboard /wp-admin3.31 ▲0.0147.61 ▼2.79
Posts /wp-admin/edit.php3.36 ▲0.0150.36 ▼0.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.40 ▼12.75
Media Library /wp-admin/upload.php3.24 ▲0.0133.05 ▲1.30

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Tickertape oEmbed Provider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.021.54 ▼0.0436.98 ▼4.42
Dashboard /wp-admin2,195 ▲205.59 ▼0.0689.85 ▼15.1146.37 ▲1.96
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0438.85 ▲3.6335.77 ▲1.80
Add New Post /wp-admin/post-new.php1,526 ▼1123.02 ▲4.41685.66 ▲28.7860.91 ▼12.01
Media Library /wp-admin/upload.php1,400 ▼34.20 ▼0.0595.62 ▼5.3040.15 ▼3.21

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

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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/tickertape-oembed-provider/tickertape-oembed-provider.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues 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
Attributes that need to be fixed: You can look at the official readme.txt

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

The primary PHP file in "Tickertape oEmbed Provider" version 1.1 is used by WordPress to initiate all plugin functionality
136 characters long description:
The plugin extends Wordpress's automatic embed feature, allowing you to directly embed stock and ETF cards from Tickertape Shortcode 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
Success! There were no dangerous files found in this plugin5 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12125

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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin