84% embed-bokun

Code Review | Embed Bokun

WordPress plugin Embed Bokun scored84%from 54 tests.

About plugin

  • Plugin page: embed-bokun
  • Plugin version: 0.22
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 22, 2020
  • Latest release: Apr 10, 2023
  • Number of updates: 12
  • Update frequency: every 97.8 days
  • Top authors: luuptek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,323 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
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼2.69ms] Passed 4 tests

Analyzing server-side resources used by Embed Bokun
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1045.03 ▲3.41
Dashboard /wp-admin3.40 ▲0.1050.97 ▼5.90
Posts /wp-admin/edit.php3.51 ▲0.1656.35 ▲8.28
Add New Post /wp-admin/post-new.php5.99 ▲0.1190.77 ▼10.10
Media Library /wp-admin/upload.php3.32 ▲0.0939.40 ▲1.83
Bokun settings /wp-admin/options-general.php?page=embed-bokun-settings-page3.2935.53

Server storage [IO: ▲0.59MB] [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: 29 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Embed Bokun: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.37 ▲0.171.80 ▲0.0243.72 ▲0.18
Dashboard /wp-admin2,196 ▲225.62 ▼0.0490.93 ▼3.7242.44 ▼0.61
Posts /wp-admin/edit.php2,104 ▲11.97 ▼0.0738.20 ▼2.9534.54 ▼1.05
Add New Post /wp-admin/post-new.php6,231 ▲4,68618.86 ▼4.56869.04 ▲182.6051.19 ▲1.40
Media Library /wp-admin/upload.php1,398 ▼54.21 ▼0.0396.61 ▼12.3143.40 ▼3.19
Bokun settings /wp-admin/options-general.php?page=embed-bokun-settings-page8612.0222.8028.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

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

SRP 50% from 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
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/embed-bokun/embed-bokun.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: bokun

embed-bokun/embed-bokun.php Passed 13 tests

The main file in "Embed Bokun" v. 0.22 serves as a complement to information provided in readme.txt and as the entry point to the plugin
27 characters long description:
Bokun plugin for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected8,071 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
JSON2007,025
PHP7137222517
JavaScript52634261
Sass5382189
Markdown132062
SVG11013
CSS2004

PHP code Passed 2 tests

An overview 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.23
Average class complexity11.00
▷ Minimum class complexity3.00
▷ Maximum class complexity23.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods31
▷ Static methods929.03%
▷ Public methods2890.32%
▷ Protected methods00.00%
▷ Private methods39.68%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin