94% bannerwoo

Code Review | BannerWoo

WordPress plugin BannerWoo scored 94% from 53 tests.

About plugin

  • Plugin page: bannerwoo
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.1.1
  • WordPress version: 5.8.1
  • First release: Apr 18, 2015
  • Latest release: Apr 18, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: pasqualebucci (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 871 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

This is a short check of server-side resources used by BannerWoo
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.1133.69 ▲14.39
Dashboard /wp-admin3.06 ▲0.0143.79 ▲3.86
Posts /wp-admin/edit.php3.11 ▲0.0040.29 ▼0.58
Add New Post /wp-admin/post-new.php5.42 ▼0.0190.35 ▼1,077.23
Media Library /wp-admin/upload.php3.00 ▼0.0130.24 ▼9.02

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for BannerWoo
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,700 ▲9416.28 ▲0.778.92 ▼1.3748.27 ▼3.21
Dashboard /wp-admin2,962 ▲1126.02 ▲0.23133.38 ▲6.85100.36 ▼8.98
Posts /wp-admin/edit.php2,706 ▼02.69 ▲0.0064.68 ▲0.1395.01 ▲4.61
Add New Post /wp-admin/post-new.php1,853 ▼019.05 ▼0.11353.15 ▼15.41105.81 ▼7.76
Media Library /wp-admin/upload.php1,772 ▼05.00 ▼0.01148.64 ▲2.45102.93 ▼16.95

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bannerwoo/includes/banner-option.php:5

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: sell, banner, multilingual, woocommerce, advertising...

bannerwoo/bannerwoo.php Passed 13 tests

The main file in "BannerWoo" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
77 characters long description:
Sell banner ads on autopilot with woocommerce. Simple, clean and lightweight.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin945 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP6204149619
PO File15858138
CSS103130
JavaScript26858

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin