100% bard-extra

Code Review | Bard Extra

WordPress plugin Bard Extra scored 100% from 54 tests.

About plugin

  • Plugin page: bard-extra
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5.3
  • WordPress version: 5.8.1
  • First release: Jul 8, 2020
  • Latest release: Jun 10, 2021
  • Number of updates: 14
  • Update frequency: every 24.1 days
  • Top authors: wproyal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 6,790 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼146.11ms] Passed 4 tests

An overview of server-side resources used by Bard Extra
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1932.56 ▲13.67
Dashboard /wp-admin3.14 ▲0.0843.93 ▼1.10
Posts /wp-admin/edit.php3.19 ▲0.0834.37 ▼7.69
Add New Post /wp-admin/post-new.php5.50 ▲0.0686.98 ▼572.29
Media Library /wp-admin/upload.php3.08 ▲0.0827.61 ▼3.34

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Bard Extra
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,720 ▲12515.85 ▲0.209.34 ▲0.5947.68 ▲3.93
Dashboard /wp-admin2,987 ▲505.89 ▲0.02154.00 ▲8.25110.99 ▼3.39
Posts /wp-admin/edit.php2,756 ▲172.69 ▼0.1365.26 ▲0.2490.68 ▼1.19
Add New Post /wp-admin/post-new.php1,512 ▼17618.58 ▼0.61367.35 ▼1.67105.74 ▼0.24
Media Library /wp-admin/upload.php1,827 ▲175.02 ▲0.02151.57 ▲2.24118.60 ▼5.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
There were not plugin tags detected

bard-extra/bard-extra.php Passed 13 tests

"Bard Extra" version 1.2.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
56 characters long description:
Adds One Click Demo Import functionality for Bard theme.

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
Everything looks great! No dangerous files found in this plugin6,987 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
XML167164,746
PHP34514151,880
JavaScript1259196
CSS2261165

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity62.50
▷ Minimum class complexity13.00
▷ Maximum class complexity214.00
Average method complexity6.59
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods66
▷ Static methods23.03%
▷ Public methods6395.45%
▷ Protected methods34.55%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/instagram-feed.png8.05KB5.04KB▼ 37.35%
assets/images/cf7.png5.74KB2.65KB▼ 53.77%
assets/images/royal-addons.png12.30KB7.13KB▼ 41.99%
assets/images/recent-posts.png3.32KB2.26KB▼ 32.05%
assets/images/elementor.png14.86KB7.53KB▼ 49.35%