84% wb-embed-code

Code Review | WB Embed Code

WordPress plugin WB Embed Code scored84%from 54 tests.

About plugin

  • Plugin page: wb-embed-code
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.6
  • WordPress version: 6.3.1
  • First release: Feb 11, 2014
  • Latest release: Mar 10, 2014
  • Number of updates: 8
  • Update frequency: every 41.0 days
  • Top authors: rss_samuel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,066 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
Installer ran successfully

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

This is a short check of server-side resources used by WB Embed Code
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.29 ▼1.92
Dashboard /wp-admin3.31 ▲0.0044.94 ▼5.20
Posts /wp-admin/edit.php3.36 ▲0.0045.34 ▲0.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.13 ▼29.39
Media Library /wp-admin/upload.php3.23 ▲0.0033.08 ▼1.11

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WB Embed Code
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.68 ▼0.701.86 ▲0.1244.55 ▼0.38
Dashboard /wp-admin2,206 ▲184.85 ▼1.01109.73 ▼8.8942.87 ▼0.46
Posts /wp-admin/edit.php2,089 ▲31.98 ▼0.0338.79 ▲2.3135.05 ▼0.03
Add New Post /wp-admin/post-new.php1,536 ▲1723.07 ▼0.31611.27 ▼70.0956.53 ▼3.02
Media Library /wp-admin/upload.php1,388 ▲34.18 ▼0.0395.52 ▼4.7642.72 ▲0.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 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/wb-embed-code/wb-embed-code.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: bitbucket, embed, wp_remote_request, oauth, shortcode...

wb-embed-code/wb-embed-code.php Passed 13 tests

This is the main PHP file of "WB Embed Code" version 0.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
112 characters long description:
A simple plugin created by the WP Bucket plugin for embed bitbucket codes in the wordpress posts with shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin42 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1102935
Markdown1307

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin