84% c4d-woo-attribute-color-image

Code Review | C4D Woo Attribute Color

WordPress plugin C4D Woo Attribute Color scored84%from 54 tests.

About plugin

  • Plugin page: c4d-woo-attribute...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Feb 19, 2017
  • Latest release: Mar 14, 2017
  • Number of updates: 13
  • Update frequency: every 1.9 days
  • Top authors: coffee4dev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /589 total downloads

Benchmarks

Plugin footprint 83% from 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.48ms] Passed 4 tests

Server-side resources used by C4D Woo Attribute Color
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.44 ▼0.42
Dashboard /wp-admin3.33 ▲0.0250.40 ▼4.31
Posts /wp-admin/edit.php3.38 ▲0.0249.08 ▼3.83
Add New Post /wp-admin/post-new.php5.91 ▲0.02101.89 ▼5.40
Media Library /wp-admin/upload.php3.25 ▲0.0234.54 ▼4.39

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for C4D Woo Attribute Color
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲8613.44 ▼1.339.13 ▲6.9542.89 ▼1.19
Dashboard /wp-admin2,195 ▲215.63 ▲0.0689.00 ▼13.8241.46 ▼0.55
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0334.82 ▼2.7034.13 ▼2.31
Add New Post /wp-admin/post-new.php1,537 ▲218.31 ▲0.17630.68 ▼20.7773.57 ▲6.95
Media Library /wp-admin/upload.php1,400 ▲34.20 ▼0.04104.38 ▲3.0745.09 ▼0.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/c4d-woo-attribute-color-image/c4d-woo-attribute-color-image.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

c4d-woo-attribute-color-image/c4d-woo-attribute-color-image.php 92% from 13 tests

The entry point to "C4D Woo Attribute Color" version 2.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; 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
Good job! No executable or dangerous file extensions detected134 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP161187
Sass10031
JavaScript20015
CSS1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions6
▷ Named functions6100.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
PNG images were not found in this plugin