84% wp-bunvc

Code Review | WP BunVC

WordPress plugin WP BunVC scored84%from 54 tests.

About plugin

  • Plugin page: wp-bunvc
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.1-4.9.5
  • WordPress version: 6.3.1
  • First release: Dec 13, 2017
  • Latest release: May 29, 2018
  • Number of updates: 14
  • Update frequency: every 12.0 days
  • Top authors: wadadanet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /800 total downloads

Benchmarks

Plugin footprint 83% from 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.12MB] [CPU: ▼6.56ms] Passed 4 tests

A check of server-side resources used by WP BunVC
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1239.58 ▼3.86
Dashboard /wp-admin3.42 ▲0.1248.83 ▲2.91
Posts /wp-admin/edit.php3.54 ▲0.1846.81 ▼5.06
Add New Post /wp-admin/post-new.php6.00 ▲0.1282.14 ▼18.64
Media Library /wp-admin/upload.php3.35 ▲0.1236.22 ▲1.32
WP BunVC /wp-admin/options-general.php?page=wp-bunvc3.3131.61

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP BunVC
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6713.70 ▼0.9723.68 ▲21.3942.87 ▼7.53
Dashboard /wp-admin2,210 ▲195.82 ▲0.9497.90 ▼0.7239.85 ▼1.42
Posts /wp-admin/edit.php2,093 ▲11.98 ▼0.0136.79 ▼5.7831.68 ▼5.32
Add New Post /wp-admin/post-new.php1,536 ▲323.19 ▲0.17661.53 ▲57.3757.07 ▲5.68
Media Library /wp-admin/upload.php1,392 ▲44.19 ▲0.0097.40 ▼1.9140.92 ▼1.74
WP BunVC /wp-admin/options-general.php?page=wp-bunvc8292.0726.1029.49

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
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-bunvc/admin/partials/wp-bunvc-admin-display.php
    • > /wp-content/plugins/wp-bunvc/public/partials/wp-bunvc-public-display.php

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (PC screen), #2 (Smartphone screen)
The official readme.txt is a good inspiration

wp-bunvc/wp-bunvc.php 92% from 13 tests

This is the main PHP file of "WP BunVC" version 1.1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes

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 detected511 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP12151580447
PO File26648
JavaScript326010
INI1006
CSS2080

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity7.86
▷ Minimum class complexity1.00
▷ Maximum class complexity36.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods39
▷ Static methods25.13%
▷ Public methods2974.36%
▷ Protected methods00.00%
▷ Private methods1025.64%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.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
3 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/donate_link.png37.75KB15.11KB▼ 59.98%
screenshot-2.png35.14KB13.49KB▼ 61.62%
screenshot-1.png48.79KB20.08KB▼ 58.85%