90% brighttalk-wp-shortcode

Code Review | BrightTALK WordPress Shortcode

WordPress plugin BrightTALK WordPress Shortcode scored90%from 54 tests.

About plugin

  • Plugin page: brighttalk-wp-sho...
  • Plugin version: 2.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.5.1
  • WordPress version: 6.3.1
  • First release: May 5, 2016
  • Latest release: Sep 29, 2020
  • Number of updates: 30
  • Update frequency: every 53.8 days
  • Top authors: billybigpotatoes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,325 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼2.11ms] Passed 4 tests

A check of server-side resources used by BrightTALK WordPress Shortcode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1142.88 ▲2.51
Dashboard /wp-admin3.41 ▲0.1150.32 ▼3.42
Posts /wp-admin/edit.php3.46 ▲0.1150.26 ▼3.23
Add New Post /wp-admin/post-new.php5.99 ▲0.1188.86 ▲0.07
Media Library /wp-admin/upload.php3.34 ▲0.1136.67 ▼1.87

Server storage [IO: ▲0.27MB] [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
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

BrightTALK WordPress Shortcode: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲2913.15 ▼1.261.80 ▼0.2642.95 ▲3.35
Dashboard /wp-admin2,221 ▲185.82 ▼0.03101.01 ▼16.6237.81 ▼10.09
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0236.00 ▼0.0335.15 ▲0.35
Add New Post /wp-admin/post-new.php1,545 ▼023.18 ▲0.05667.64 ▼66.6053.63 ▼6.31
Media Library /wp-admin/upload.php1,400 ▲64.21 ▲0.01105.51 ▲6.6245.54 ▲1.30

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: lead generation, video, webinar, audience, b2b...

brighttalk-wp-shortcode/brighttalk-wp-shortcode.php Passed 13 tests

"BrightTALK WordPress Shortcode" version 2.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
101 characters long description:
Add the BrightTALK media player shortcode to to simplify embedding BrightTALK content into your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,077 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP130351,077

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.48
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%
Functions7
▷ Named functions7100.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.24MB with 0.17MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png243.18KB69.72KB▼ 71.33%