83% woo-rede

Code Review | Integration Rede for WooCommerce

WordPress plugin Integration Rede for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: woo-rede
  • Plugin version: 2.1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Jan 2, 2020
  • Latest release: Jul 28, 2021
  • Number of updates: 103
  • Update frequency: every 5.6 days
  • Top authors: MarcosAlexandre (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /7,349 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.02ms] Passed 4 tests

A check of server-side resources used by Integration Rede for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.64 ▼7.55
Dashboard /wp-admin3.34 ▲0.0353.49 ▼2.13
Posts /wp-admin/edit.php3.39 ▲0.0347.92 ▼4.56
Add New Post /wp-admin/post-new.php5.92 ▲0.0399.44 ▲6.15
Media Library /wp-admin/upload.php3.26 ▲0.0340.64 ▲6.93

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 270 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Integration Rede for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.33 ▼0.262.10 ▲0.3745.73 ▲2.05
Dashboard /wp-admin2,207 ▲305.51 ▼0.1088.11 ▼12.3141.65 ▼0.77
Posts /wp-admin/edit.php2,113 ▲132.03 ▲0.0635.53 ▼3.0636.30 ▲1.75
Add New Post /wp-admin/post-new.php1,540 ▲1423.26 ▲0.16641.82 ▼45.3152.02 ▲1.83
Media Library /wp-admin/upload.php1,406 ▲64.23 ▲0.0398.49 ▼9.5744.62 ▼3.78

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 189× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/woo-rede/vendor/monolog/monolog/tests/Monolog/Handler/TestHandlerTest.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/woo-rede/vendor/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/woo-rede/vendor/monolog/monolog/tests/Monolog/Handler/ErrorLogHandlerTest.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/woo-rede/vendor/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/woo-rede/vendor/monolog/monolog/tests/Monolog/Handler/AbstractHandlerTest.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/woo-rede/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php:31
    • > PHP Fatal error
      Uncaught Error: Interface 'Rede\\RedeSerializable' not found in wp-content/plugins/woo-rede/vendor/developersrede/erede-php/src/Rede/Additional.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/woo-rede/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php:35
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/woo-rede/vendor/monolog/monolog/tests/Monolog/Handler/HandlerWrapperTest.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\StreamHandler' not found in wp-content/plugins/woo-rede/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in woo-rede/assets to your readme.txt
You can take inspiration from this readme.txt

woo-rede/integration-rede-for-woocommerce.php 85% from 13 tests

The principal PHP file in "Integration Rede for WooCommerce" v. 2.1.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-rede.php" instead of "integration-rede-for-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin19,390 lines of code in 261 files:
LanguageFilesBlank linesComment linesLines of code
PHP2314,1268,39817,270
Markdown1039201,211
JSON400295
SVG10010275
PO File18182187
CSS2320101
JavaScript293035
XML13016

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity5.74
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces15
Interfaces9
Traits4
Classes224
▷ Abstract classes104.46%
▷ Concrete classes21495.54%
▷ Final classes00.00%
Methods1,522
▷ Static methods422.76%
▷ Public methods1,24982.06%
▷ Protected methods19112.55%
▷ Private methods825.39%
Functions88
▷ Named functions1112.50%
▷ Anonymous functions7787.50%
Constants92
▷ Global constants11.09%
▷ Class constants9198.91%
▷ Public constants91100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin