78% woo-display-ebit-banner

Code Review | Iran Alves - Ebit Banner para Woocommerce

WordPress plugin Iran Alves - Ebit Banner para Woocommerce scored78%from 54 tests.

About plugin

  • Plugin page: woo-display-ebit-...
  • Plugin version: 0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.23-5.7
  • WordPress version: 6.3.1
  • First release: Aug 26, 2018
  • Latest release: Apr 13, 2021
  • Number of updates: 5
  • Update frequency: every 192.6 days
  • Top authors: iranalves85 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

60+ active /1,769 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.11MB] [CPU: ▼1.25ms] Passed 4 tests

Server-side resources used by Iran Alves - Ebit Banner para Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1341.74 ▼1.73
Dashboard /wp-admin3.41 ▲0.1052.03 ▲2.98
Posts /wp-admin/edit.php3.52 ▲0.1650.92 ▲3.12
Add New Post /wp-admin/post-new.php5.99 ▲0.1088.01 ▼9.38
Media Library /wp-admin/upload.php3.33 ▲0.1038.84 ▲3.94

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Iran Alves - Ebit Banner para Woocommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲7213.28 ▼1.084.80 ▲2.6442.71 ▼2.99
Dashboard /wp-admin2,213 ▲254.84 ▼1.03107.84 ▼13.5241.22 ▼2.82
Posts /wp-admin/edit.php2,089 ▼02.17 ▲0.2038.67 ▲1.0035.57 ▲1.78
Add New Post /wp-admin/post-new.php1,518 ▼117.73 ▼5.38637.26 ▼17.4466.06 ▲13.28
Media Library /wp-admin/upload.php1,395 ▲74.24 ▲0.05100.35 ▼0.1042.89 ▼1.76

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/woo-display-ebit-banner/iran-alves-ebit-banner-for-woocommerce.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WoocommerceDisplayEbitBanner' not found in wp-content/plugins/woo-display-ebit-banner/inc/class-wc-qsti-admin.php:6

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
  • Donate link: Please fix this invalid url: "Pix para iranjosealves@gmail.com"
You can look at the official readme.txt

woo-display-ebit-banner/iran-alves-ebit-banner-for-woocommerce.php 92% from 13 tests

The main file in "Iran Alves - Ebit Banner para Woocommerce" v. 0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-display-ebit-banner.php" instead of "iran-alves-ebit-banner-for-woocommerce.php")

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
Good job! No executable or dangerous file extensions detected505 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3156226432
Markdown120052
CSS22121

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity31.00
▷ Minimum class complexity18.00
▷ Maximum class complexity44.00
Average method complexity3.61
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods1982.61%
▷ Protected methods00.00%
▷ Private methods417.39%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected