94% idbbee

Code Review | idbbee

WordPress plugin idbbee scored 94% from 54 tests.

About plugin

  • Plugin page: idbbee
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.7.1
  • WordPress version: 5.8.1
  • First release: Jun 3, 2015
  • Latest release: May 5, 2021
  • Number of updates: 12
  • Update frequency: every 180.3 days
  • Top authors: faikdjikic (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

90+ active / 2,447 total downloads

Benchmarks

Plugin footprint Passed 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: ▼145.77ms] Passed 4 tests

A check of server-side resources used by idbbee
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1244.74 ▲22.56
Dashboard /wp-admin3.07 ▲0.0147.35 ▼0.73
Posts /wp-admin/edit.php3.12 ▲0.0147.86 ▼3.34
Add New Post /wp-admin/post-new.php5.43 ▲0.0098.90 ▼570.82
Media Library /wp-admin/upload.php3.01 ▲0.0033.68 ▼8.17

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by idbbee
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.81 ▲0.319.66 ▲0.9653.56 ▼3.65
Dashboard /wp-admin2,970 ▲365.86 ▼0.27148.27 ▼3.94111.61 ▼16.61
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0171.64 ▲3.2998.31 ▲9.33
Add New Post /wp-admin/post-new.php1,683 ▲1118.75 ▼0.11369.93 ▲3.22111.14 ▼14.46
Media Library /wp-admin/upload.php1,807 ▼05.00 ▼0.02154.94 ▼9.93128.46 ▼1.01

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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_shortcode() in wp-content/plugins/idbbee/idbbee.php:44

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 ([idbbee] shortcode), #2 ([idbbee] result)
You can look at the official readme.txt

idbbee/idbbee.php Passed 13 tests

"idbbee" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
76 characters long description:
[idbbee src="//thyme.dbbee.com/u/demo/" width="100%" height="600"] shortcode

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin41 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13941

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
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

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png42.16KB20.19KB▼ 52.10%
screenshot-1.png17.19KB11.68KB▼ 32.05%