94% c4d-woo-condition-bar

Code Review | C4D Woo Condition Bar

WordPress plugin C4D Woo Condition Bar scored 94% from 54 tests.

About plugin

  • Plugin page: c4d-woo-condition...
  • Plugin version: 2.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 5.8.1
  • First release: Feb 17, 2017
  • Latest release: Jul 25, 2018
  • Number of updates: 18
  • Update frequency: every 29.1 days
  • Top authors: coffee4dev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 828 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.02MB] [CPU: ▼141.87ms] Passed 4 tests

A check of server-side resources used by C4D Woo Condition Bar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.71 ▼0.0124.85 ▲0.94
Dashboard /wp-admin3.10 ▲0.0451.13 ▲2.62
Posts /wp-admin/edit.php3.15 ▲0.0452.16 ▲3.06
Add New Post /wp-admin/post-new.php5.45 ▲0.0293.36 ▼568.82
Media Library /wp-admin/upload.php3.04 ▲0.0434.78 ▼2.21

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for C4D Woo Condition Bar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,254 ▼34215.55 ▼0.350.41 ▼9.5010.56 ▼40.31
Dashboard /wp-admin2,967 ▲366.10 ▲0.02154.07 ▼3.33122.27 ▲1.78
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0181.62 ▲5.2999.09 ▲7.18
Add New Post /wp-admin/post-new.php1,683 ▲10218.75 ▲4.36396.13 ▼13.88112.79 ▼8.46
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.01155.15 ▼5.18125.00 ▼2.39

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 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)
Even though everything seems fine, this is not an exhaustive test

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 errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/c4d-woo-condition-bar/c4d-woo-condition-bar.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
Please take inspiration from this readme.txt

c4d-woo-condition-bar/c4d-woo-condition-bar.php 92% from 13 tests

"C4D Woo Condition Bar" version 2.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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 plugin306 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP1109195
JavaScript37178
Sass11032
CSS1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin