10% cev-addons-for-woocommerce

Code Review | CEV Addons for Woocommerce

WordPress plugin CEV Addons for Woocommerce scored10%from 54 tests.

About plugin

  • Plugin page: cev-addons-for-wo...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.9.2
  • WordPress version: 6.3.1
  • First release: Mar 31, 2022
  • Latest release: Apr 4, 2022
  • Number of updates: 9
  • Update frequency: every 0.4 days
  • Top authors: ramirolobo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /700 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/cev-addons-for-woocommerce/cev-addons-wc.php+23
    Constant CEVAW_PLUGIN_DOCUMENTATION_URL already defined

Server metrics [RAM: ▼1.95MB] [CPU: ▼56.16ms] Passed 4 tests

Analyzing server-side resources used by CEV Addons for Woocommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.423.99 ▼30.57
Dashboard /wp-admin2.06 ▼1.285.33 ▼51.64
Posts /wp-admin/edit.php2.06 ▼1.295.57 ▼40.27
Add New Post /wp-admin/post-new.php2.06 ▼3.826.66 ▼102.16
Media Library /wp-admin/upload.php2.06 ▼1.175.47 ▼26.42

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for CEV Addons for Woocommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6914.28 ▼0.081.65 ▼0.2744.26 ▲1.86
Dashboard /wp-admin2,221 ▲405.63 ▼0.0892.00 ▼11.5146.38 ▲4.69
Posts /wp-admin/edit.php2,127 ▲242.02 ▲0.0239.54 ▲3.4837.68 ▲4.65
Add New Post /wp-admin/post-new.php1,550 ▲1523.14 ▲5.11616.52 ▲17.7154.08 ▼12.83
Media Library /wp-admin/upload.php1,426 ▲264.22 ▼0.0196.43 ▼0.4444.88 ▲2.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/cev-addons-for-woocommerce/cev-addons-wc.php+23
    Constant CEVAW_PLUGIN_DOCUMENTATION_URL already defined
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/cev-addons-for-woocommerce/templates/admin/settings-top-banner.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cev-addons-for-woocommerce/includes/class-cevaw-load.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: addons, tools, woocommerce, coupon

cev-addons-for-woocommerce/cev-addons-wc.php 77% from 13 tests

The main file in "CEV Addons for Woocommerce" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("cev-addons-for-woocommerce.php" instead of "cev-addons-wc.php")
  • Requires PHP: Required version must match the one declared in readme.txt ("5.6" instead of "7.0")
  • Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "5.5")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin2,204 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP183422262,189
CSS1109
JavaScript1106

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.72
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods88
▷ Static methods00.00%
▷ Public methods8394.32%
▷ Protected methods00.00%
▷ Private methods55.68%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin